What will be the output of the following C code? [code] #include <stdio.h> int main() { int *p = NULL; for

What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int *p = NULL;
        for (foo(); p; p = 0)
            printf("In for loop\n");
            printf("After loop\n");
    }
A. In for loop after loop
B. Compile time error
C. Infinite loop
D. Depends on the value of NULL
 

Tìm kiếm

Back
Top