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
8 months agoGalen
9 months agoLoren
9 months agoTonette
9 months agoChantay
9 months agoAntonio
9 months agoNoemi
10 months agoMagda
10 months agoRessie
10 months agoDante
10 months agoMartina
10 months agoDenny
11 months agoKaron
11 months agoAmina
11 months agoBasilia
1 year agoNohemi
1 year agoDenny
1 year agoJulio
1 year 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