Counter in programming

Level pending

void main() { int x =0; x+= 10; x= x-4; x++; --x; printf("%d",x++);

}

What is the value of x in the print statement ??

5 8 6 7

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Imran Emi
Jun 24, 2014

Answer is 6;

x=0; x=10; x=6; x= 7; x=6; then print x =6 ; after that x =7;

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...