Question: consider the following statement: struct studentType 1 { string name, int ID; float gpa; } ; struct studentTyep 2 { string name; int ID; float

consider the following statement:
struct studentType1
{
string name,
int ID;
float gpa;
};
struct studentTyep2
{
string name;
int ID;
float gpa;
};
studentType1 student1,student2;
studentTyep2 student3, student4;
whixh of the following statement is valid inC++?
a, student2.ID=ID
b, student2=student3
c, student1=student4
d, student1.ID= student3.ID

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 Programming Questions!