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

Write the code in C++ Write the code in C++ Question 2: Create a structure Student with

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

1 Expert Approved Answer
Step: 1 Unlock

Certainly Heres how you can create the C structure and functions as described cpp include struct Stu... 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 Databases Questions!