Question: Write the code in C++ Question 2: Create a structure Student with member variables roll number of type Int, ago of typo Int and marks
Question 2: Create a structure Student with member variables roll number of type Int, ago of typo Int and marks of type int.Write a function inside named as information that takes three Input parameters roll number, age and marks and assign these parameters to the first student at Index 0 and then increment each parameter by 1 and assign to the next student at Index 1. The function must return the array of two students in which the first is aysigned the same Input parameters and the second is assigned the parameters with increment of 1. You have to create a member function named print that prints the Information of the students. struct student introll_no; intage: int marks struct student information(int rollint age int marks_of_student)
Step by Step Solution
There are 3 Steps involved in it
Certainly Heres how you can create the C structure and functions as described cpp include struct Stu... View full answer
Get step-by-step solutions from verified subject matter experts
