blog

c programming

c programming

4 The following code fragment struct student { string name; double gpa; }; student thisStudent; cout << “Enter this student’s name: “ << flush; cin >> thisStudent.name; cout << “Enter this student’s GPA: “ << flush; cin >> thisStudent.gpa; student nextStudent = thisStudent;

A. copies both thisStudent’s name and gpa to nextStudent.

B. displays the name and gpa of thisStudent.

C. causes a compiler error.

D. causes a run-time error

Is this the question you were looking for? If so, place your order here to get started!

×