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.
Mindy
4 months agoGalen
4 months agoLoren
4 months agoTonette
4 months agoChantay
4 months agoAntonio
5 months agoNoemi
5 months agoMagda
5 months agoRessie
5 months agoDante
6 months agoMartina
6 months agoDenny
6 months agoKaron
6 months agoAmina
6 months agoBasilia
10 months agoNohemi
8 months agoDenny
8 months agoJulio
9 months agoJillian
9 months agoRegenia
10 months agoDeane
10 months agoAudry
10 months agoAudry
10 months agoTegan
11 months agoFreeman
11 months agoKeshia
11 months agoBrock
11 months ago