Haha, this is a classic trick question! The right answer is B, because the post-increment operator `i++` returns the original value of `i`, which is 1, and then increments it. So the output is 2, not 1.
I think the correct answer is B. The `if (i++==1)` condition evaluates to true, and the `cout << i;` statement prints the incremented value of `i`, which is 2.
Basilia
2 days agoRegenia
12 days agoDeane
13 days agoTegan
1 months agoFreeman
1 months agoKeshia
1 months agoBrock
1 months ago