railway RRB JE (CBT I + CBT II) Mock Test 2024 Programming and Data Structure Programming in C While Loop
What is the output of the following code?
int i = 1 ;
while ( i <= 10 )
printf ( "%d\n", i );
1
10 9 8 7 6 5 4 3 2 1
2
1 2 3 4 5 6 7 8 9 10
3
0 1 2 3 4 5 6 7 8 9
4
Infinite loop