-
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int k = 2;
if (k == 2)
{
printf("Hello Interview Mania");
continue;
}
}
-
- Hello Interview Mania
Hello Interview Mania - Hello Interview Mania
- Garbage value
- Compilation Error
- None of these
- Hello Interview Mania
Correct Option: D
Compilation Error
main.c: In function ‘main’:
main.c:8:13: error: continue statement not within a loop
continue;