Tuesday, August 9, 2011

Chapter 4, question 4

4.  If the variable x has the value 10, what are the values of x and a after each of the following statements is executed separately?


a = x++;

a is 10, x is 11.

a = ++x;

a is 11, x is 11.

No comments:

Post a Comment