Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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++ 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)
Write the code in C++
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started