Programming Languages C++ Objective
Mar 18, 2013

When following piece of code is executed, what happens?

b = 3;

a = b++;

Choose the correct answer:
A) a contains 3 and b contains 4
B) a contains 4 and b contains 4
C) a contains 4 and b contains 3
D) a contains 3 and b contains 3
Detailed Explanation

Option A is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback