Answer to Question #17429 in C++ for Lonod
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
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!
Learn more about our help with Assignments:
C++
Comments
Leave a comment