

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


#include
cout<<"Name: "<<name; cout<<"\nRoll: "<<roll; cout<<"\nMarks: "; for(int i=0;i<5;i++) cout<<marks[i]<<" "; cout<<"\nTotal marks: "<<tot; cout<<"\nAverage: "<<average<<endl; } }; int main() { int m[]={54,65,76,87,98}; student d1("Navya",5,m); student d2(d1); student d3; return 0; }