Question: Consider the following statements: struct studentType 1 { string name; int ID; double gpa; } ; studentType 1 student 1 , student 2 ; struct

Consider the following statements:
struct studentType1
{
string name;
int ID;
double gpa;
};
studentType1 student1, student2;
struct studentType2
{
string name;
int ID;
double gpa;
};
studentType2 student3, student4;
Which of the following statements is valid in C++?
a. student1.ID = student3.ID;
b. student2.ID = ID;
c. student1= student4;
d. student2= student3;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!