-
What will be the output of the following C code?
#include <stdio.h>
int main()
{
printf("Hello Interview Mania! %d \n", num);
return 0;
}
-
- Hello Interview Mania! num
- Compilation Error
- Hello Interview Mania!
- Hello Interview Mania! followed by a garbage value
- None of these
Correct Option: B
It results in an error since num is used without declaring the variable num.