What will be the output of the following C code? [code] #include <stdio.h> int main() { int i = 0, j = 0; l1:

Ngô Quốc Huy

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int i = 0, j = 0;
        l1: while (i < 2)
        {
            i++;
            while (j < 3)
            {
                printf("loop\n");
                goto l1;
            }
        }
    }
A. loop loop
B. compilation error
C. oop loop loop loop
D. infinite loop
 

Tìm kiếm

Back
Top