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