Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 495443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:35:38+00:00 2026-05-13T05:35:38+00:00

Given the expression by input like 68+32 we have to evaluate without using a

  • 0

Given the expression by input like 68+32 we have to evaluate without using a semicolon in our program. If it will be something inside the if or for loop?
Reference : https://www.spoj.pl/problems/EXPR2/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:35:38+00:00Added an answer on May 13, 2026 at 5:35 am

    You can use if and the comma operator, something like this:

    if( expr1, expr2, expr3, ... ) {}
    

    It would be equivalent to

    expr1;
    expr2;
    expr3;
    ...
    

    To use variables without any warnings you can define a function the recieves the data types you need that you call from your main, like so:

    void myFunc(int a, double b) {
        if ( expr1, expr2 ) { }
    }
    int main() {
        if ( myFunc(0, 0), 0 ) { }
    }
    

    Note that you need to add , 0 in main, otherwise an error is raised because a void return is not ignored.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a regular expression, I'm looking for a package which will dynamically generate the
Given a Lambda Expression: Define(Expression<Func<T, int>> property) and used like: Define(x => x.Collection.Count) What
Given an input string, I'd like to return the rows from a (MySQL) database
I have a problem trying to transform a given input string to a given
Given a html document, what is the most correct and concise regular expression pattern
Given two identical boost::variant instances a and b , the expression ( a ==
What regular expression can I use (if any) to validate that a given string
I am parsing an Expression Tree. Given a NodeType of ExpressionType.MemberAccess, how do I
Given a method signature: public bool AreTheSame<T>(Expression<Func<T, object>> exp1, Expression<Func<T, object>> exp2) What would
Given <xsl:variable name=datePrecision as=element()*> <p>Year</p> <p>Month</p> <p>Day</p> <p>Time</p> <p>Timestamp</p> </xsl:variable> The expression $datePrecision[5] returns

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.