-
What will be the output of the following C code?
#include <stdio.h>
struct student
{
int roll_no;
char Name[35];
}
void main()
{
struct student stu;
stu.roll_no = 10;
printf("Ajit Kumar Gupta");
}
-
- Nothing
- Ajit Kumar Gupta
- 10
- Garbage value
- Compilation Error
Correct Option: E
Compilation Error
main.c:7:5: error: expected ‘;’, identifier or ‘(’ before ‘void’
void main()