Question: The following program generates an error. Why? typedef struct Date _ struct { int date; int month; int year; } Date; typedef struct Fime _
The following program generates an error. Why?
typedef struct Datestruct
int date;
int month;
int year;
Date;
typedef struct Fimestruct
int hour;
int minute;
int second;
Time;
int mainvoid
Date myDate;
Time myTime;
myDate date ;
myDate. month ;
myDate. year ;
myTime. hour ;
myTime. minute ;
myTime. second ;
myTime. minute myDate hour;
Incorrect syntax is used to declare myTime
myDate cannot access variable hour
Incorrect syntax is used to declare myDate
struct myDate s not defined correctly
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
