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