What will be the output of the following C code? [code] #include <stdio.h> int main() { printf("%d ", 1); goto

Thanh Hoan

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        printf("%d ", 1);
        goto l1;
        printf("%d ", 2);
        l1:goto l2;
        printf("%d ", 3);
        l2:printf("%d ", 4);
   }
A. 1 4
B. Compilation error
C. 1 2 4
D. 1 3 4
 

Tìm kiếm

Back
Top