-
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int n = 0;
for (; ; ;)
printf("Hey...\n");
printf("Hello...\n");
}
-
- Hey...
- Hello...
- Runtime Error
- Compilation Error
- None of these
Correct Option: D
Compilation Error
In function 'int main()':
5:18: error: expected primary-expression before ';' token
for (; ; ;)
^
5:18: error: expected ')' before ';' token
5:19: error: expected primary-expression before ')' token
for (; ; ;)