This define structure whose name is student
This structure has three member sCode:struct student{
char name[30];
int rollNo;
struct dateOfBirth *age;
}DOB; /*created structure varoable DOB*/
};
1. Name is member of structure and it's type of char
2. rollNo is member of structure and it's type of int
3. dateOfBirth is member of structure and type of struct
Does this declaration is equivalent to below declaration ?
Code:struct student{
char name[30];
int rollNo;
struct dateOfBirth {*age}; // is it valid line
}DOB; /*created structure varoable DOB*/
};