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 Date_struct {
int date;
int month;
int year;
} Date;
typedef struct Fime_struct {
int hour;
int minute;
int second;
} Time;
int main(void){
Date myDate;
Time myTime;
myDate date =1;
myDate. month =1;
myDate. year =19;
myTime. hour =0;
myTime. minute =0;
myTime. second =0;
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
 The following program generates an error. Why? typedef struct Date_struct {

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!