

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code? #include <stdio.h> int main() { int *ptr = NULL; for (fun(); ptr; ptr = 0) printf("Executed in loop n"); printf("Executed After loop n"); } |
A. | Compilation Error |
B. | Executed in loop |
C. | Executed After loop |
D. | Infinite loop |
E. | Depends on the value of NULL |
Answer» B. Executed in loop | |