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

Thu Ha

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    void main()
    {
        int i = 0, k;
        if (i == 0)
            goto label;
            for (k = 0;k < 3; k++)
            {
                printf("hi\n");
                label: k = printf("%03d", i);
            }
    }
A. 0
B. hi hi hi 0 0 0
C. 0 hi hi hi 0 0 0
D. 0 0 0
 

Tìm kiếm

Back
Top