What will be the output of the following program on GCC?

		
					

Loading

โœช Choose the correct option.

What will be the output of the following program on GCC?

include 
int main(){
int i=1,j=1;
for(;j;printf("%d %d ",i,j))
j = i++<=5;
return 0;
}

A. 2 1
3 1
4 1
5 1
6 1
7 0
B. 2 1
3 1
4 1
5 1
6 1
7 1
C. 1 1
2 1
3 1
4 1
5 1
6 1
D. 2 1
3 2
4 3
5 4
6 5
7 6

Leave a Comment