Answer to Question #17429 in C++ for Lonod

Question #17429
Supposed that x = 1. Determine the value of the following expression and the value of x after the evaluation of the expression. (x > 1) && (x++ > 1)
1
Expert's answer
2012-10-30T11:27:47-0400
void function(int x) {
cout<< ((x > 1) && (x++ > 1)) << endl;
cout<< x << endl;
}

int main ()
{
function(1);
system("pause");
return0;

}

Results would be
0
1

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS