Question: Please help with: struct studentType1{ string name; int ID; float gpa;}; struct studentType2{ string name; int ID; float gpa; }; studentType1 student1, student2; studentType2 student3,

Please help with:

struct studentType1{

string name;

int ID;

float gpa;};

struct studentType2{

string name;

int ID;

float gpa;

};

studentType1 student1, student2;

studentType2 student3, student4;

Which of the following statements is valid c++:

1.student2.ID = ID;

2.student2 = student3;

3.student1=student4;

4.student1.ID=student3.ID

Thanks

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!