Question: A structure and structure variable are defined and declared as follow : struct Data { char name [ 1 1 ] ; int age; }

A structure and structure variable are defined and declared as follow :
struct Data
{
char name[11];
int age;
} dat;
/*...initilalize dat and process it here ...*/
Fill in blank to access the name field of structure variable dat and display it.
printf("%s",_______________);
Fill in blanks to access the age field of structure variable dat through the pointer ptr and display it.
struct Data *ptr =______________;
printf("%d",__________________________);

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!