Given the following strucure definitions, what is the correct way to print the person's birth year?
Struct DateType
{
Int day;
Int month;
Int year;
}
Struct PersonType
{
Int age;
Float weight;
DateType birthday;
}
PersonType person;
A) cout << person.birthday.year;
B) cout << year;
C) cout << birthday.year;
D) cout << peson.year;
Correct Answer:
Verified
Q23: If you have a class with a
Q24: A member function of a class should
Q25: A class in which modifications to the
Q26: A member function that gets called automatically
Q27: In a structure definition, the identifiers declared
Q29: C++11 allows you to have a constructor
Q30: When defining a class, the class should
Q31: Given the following strucure definition, what is
Q32: The name of a constructor is _
Q33: Which of the following is the correct
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents