[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

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);
}

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 ::

Post Your Answer Here:     

No Discussion on this question yet!