Practice mode C Language

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.