Question: C++ program that declares a structure to store the ID of the student and array of student marks (5 marks). It defines the structure

C++ program that declares a structure to store the ID of the 

C++ program that declares a structure to store the ID of the student and array of student marks (5 marks). It defines the structure variable, input the values, and print the ID, marks, and the summation of marks : #include using namespace std; struct student int id; double marks[5]; } int main () { student s; double sum=0; cout < > s.id; for (int i=0; i

Step by Step Solution

3.49 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 include using namespace st... View full answer

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!