Q.

What will be output if you will compile and execute the following c code? #include<stdio.h>
int main(){
int x;
for(x=1;x<=5;x++);
printf("%d",x); return 0;
}

A. 4
B. 5
C. 6
D. compiler error
Answer» C. 6
2k
0
Do you find this helpful?
6

Discussion

No comments yet

Related MCQs