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