After the C statements int x = 5; int y = x++; what is the value of y?
Correct answer B. 5
Explanation
The post-increment x++ returns the old value of x before increasing it. So y receives 5, and only afterwards does x become 6.
Answer checked How we write and check questions
Discussion