int x = 3;
if( x == 2 )
x = 0;
if( x == 3 )
x++;
else x += 2;
What value will x contain when the above sample code is executed?
Reveal answer
Fill a bubble to check yourself
int x = 3;
if( x == 2 )
x = 0;
if( x == 3 )
x++;
else x += 2;
What value will x contain when the above sample code is executed?