Complete the code to define a structure named Person.
struct [1] {
int age;
double height;
};The structure name should be Person to match the task requirement.
Complete the code to declare a variable of type Person named p1.
Person [1];The variable should be named p1 as requested.
Fix the error in the structure definition by completing the missing keyword.
[1] Person {
int age;
double height;
};The keyword struct is needed to define a structure in C++.
Fill both blanks to define a structure named Car with members make and year.
struct [1] { [2] make; int year; };
The structure name is Car and the type of 'make' is string.
Fill all three blanks to define a structure named Book with members title, author, and pages.
struct [1] { [2] title; [3] author; int pages; };
The structure is named Book. Both 'title' and 'author' are text, so their type is string.
