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
Q8: A function can return a value of
Q15: Data in a struct variable must be
Q18: Consider the following statements: struct rectangleData
{
Double length;
Double
Q19: Consider the following statements: struct rectangleData
{
Double length;
Double
Q19: You can use the assignment statement on
Q22: Both arrays and structs are examples of
Q24: Consider the following statements: struct supplierType
{
Q25: A(n)_ is a collection of a fixed
Q35: You can assign the value of one
Q36: Consider the following function prototype:int seqSearch(const listType&
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