Write a C++ program with a class 'student' that has three attributes: name, roll, and marks. Use a get method to input data for two objects. Then…
Write a C++ program with a class 'student' that has three attributes: name, roll, and marks. Use a get method to input data for two objects. Then, find the student with the highest marks and print that student's name.
From the Cadet College Lecturer (ICT) May 2025 – Written exam, question 2 of 10.
More from this paper
- Previous: (a) An organization wants to divide its LAN IP address 192.168.0.0/24 into 4 subnets according to buildings. The buildings' IP address…
- Next: Find out the output of this program. for (int i= 5; i>=1; i--) { for (int j=1; j<=i; j++) { printf("%3d", j); } }
- All questions in Cadet College Lecturer (ICT) May 2025 – Written