Tuesday, May 12, 2009

Which one of the following is printed when this code is executed

int x;
int z=0;
for( x=0; x<5; x++) { z++; if( x <3 ) continue; if( x>3 ) break;
z++;
}
printf(“%d\n”, z);

a Z=1
b. Z=6
c. Z=7
d. Z=9
e. Z=10

No comments: