C Programming :: Structures, Unions, Enums - Discussion
Home > C Programming > Structures, Unions, Enums > MCQs Questions Discussion
18 / 43
What will be output of the following "c" code?
#include<stdio.h>
void main()
{
struct date;
struct student
{
char name[30];
int rollno;
struct date dob;
}stud;
struct date
{
int day,month,year;
};
scanf("%s%d%d%d",stud.rollno,&student.dob.day,&student.dob.month,&student.dob.year);
}
#include<stdio.h>
void main()
{
struct date;
struct student
{
char name[30];
int rollno;
struct date dob;
}stud;
struct date
{
int day,month,year;
};
scanf("%s%d%d%d",stud.rollno,&student.dob.day,&student.dob.month,&student.dob.year);
}
ANo Output No Error
BCompiler Error: Undefined structure date
Cwill take the given input
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!