-
What will be the output of the following C code?
#include <stdio.h>
struct country
{
int code;
char name[26];
}
void main()
{
struct country c;
c.code = 91;
printf("India");
}
-
- Garbage value
- India
- 91
- Compilation Error
- None of these
Correct Option: D
Compilation Error
main.c:7:5: error: expected ‘;’, identifier or ‘(’ before ‘void’
void main()