What will the following program segments display?
A) x = 2;
y = x++;
cout ≪ x ≪ y;
B) x = 2;
y = ++x;
cout ≪ x ≪ y;
C) x = 2;
y = 4;
cout ≪ x++ ≪ −−y;
D) x = 2;
y = 2 * x++;
cout ≪ x ≪ y;
E) x = 99;
if (x++<100)
cout "It is true!\n";
else
cout ≪ "It is false!\n";
F) x = 0;
if (++x)
cout ≪ "It is true!\n";
else
cout ≪ "It is false!\n";
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.