Solved

Consider the Following Statements: Struct PersonalInfo
\quad String Name; \quad Int Age;

Question 21

Multiple Choice

Consider the following statements: struct personalInfo
{
\quad string name;
\quad int age;
\quad double height;
\quad double weight;
};
struct commonInfo
{
\quad string name;
\quad 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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions