-
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");
}
-
- Compilation Error
- Executed in loop
- Executed After loop
- Infinite loop
- Depends on the value of NULL
Correct Option: A
Compilation Error