-
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int k = 0;
for (fun(); k == 1; k = 2)
printf("Executed in loop\n");
printf("Executed After loop\n");
}
int fun()
{
return 1;
}
-
- Infinite loop
- Compilation Error
- Executed in loop
- Executed After loop
- None of these
Correct Option: D
Executed After loop