Nguyễn Hồng Yến
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 (l1: i < 2)
{
i++;
while (j < 3)
{
printf("loop\n");
goto l1;
}
}
}
B. Compilation error
C. loop loop loop loop
D. Infinite loop