After the C statements int a = 5; int b = ++a; what is the value of b?
Correct answer A. 6
Explanation
The pre-increment ++a increases a first and then returns the new value. So a becomes 6 and b is assigned 6.
Answer checked How we write and check questions
Discussion