Đàm Ngọc Lan
New member
What will be the output of the following C code?
A. Loop Loop
B. Compilation error
C. Loop Loop Loop Loop
D. Infinite Loop
Code:
#include <stdio.h>
int main()
{
int i = 0, j = 0;
while (i < 2)
{
l1 : i++;
while (j < 3)
{
printf("Loop\n");
goto l1;
}
}
}
B. Compilation error
C. Loop Loop Loop Loop
D. Infinite Loop