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