Question: Considering the following definitions: struct student } char * name; long ID: float avg; int * grades; { student * A [ 2 ] ;

Considering the following definitions: struct student
}
char* name;
long ID:
float avg;
int* grades;
{
student * A[2];
A[O]=new student; All]=new student;
Which of the following produces an error?
Select one:
a. cin>>A|1]->grades;
b. cin>> Al1]->name;
@ c. cin>>A|1]->avg;
d. choiceaandchoiceb

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!