Question: Please explain answer 16.(10 pts) Consider the following structure declarations when answering the questions below. struct Date int day; int month; int year; 1i struct

Please explain answer
16.(10 pts) Consider the following structure declarations when answering the questions below. struct Date int day; int month; int year; 1i struct Person string name; string city; int age; Date dob ; // dob date of birth 1i a) Write a statement that declares the identifier Sam as a variable of DataType Person. b) Write a cout statement that will output the value of age of the variable Sam. c) Write a statement that declares the identifier Jane_Doe as a variable of DataType Person. d) Write a statement that assigns a value of 1950 to the year of the dob of Jane_Doe. e) Write a cout statement that will output the value of month of the dob of Jane_Doe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
