Multiple Choice
Consider the following statements: struct personalInfo
{
string name;
int age;
double height;
double weight;
};
struct commonInfo
{
string name;
int age;
};
personalInfo person1,person2;
commonInfo person3,person4;
Which of the following statements is valid in C++?
A) person1 = person3;
B) person2 = person1;
C) person2 = person3;
D) person2 = person4;
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Consider the following statements. struct circleData<br>{<br>Double radius;<br>Double
Q16: Consider the following statements: struct studentType1<br>{<br>
Q17: Figure 1:<br>struct newStudent<br>{<br> <span class="ql-formula" data-value="\quad"><span
Q18: You can use the assignment statement on
Q20: Figure 1:<br>struct newStudent<br>{<br> <span class="ql-formula" data-value="\quad"><span
Q22: Consider the following statements: struct supplierType<br>{<br>
Q25: An array name and index are separated
Q27: The following statement defines a struct houseType
Q30: A function can return a value of
Q37: In C++, the _ symbol is an