Question: In c++ Lab 1 Create a program that performs the following actions: . Construct a structure Student that consists of the following fields: ID, marks,
In c++
Lab 1 Create a program that performs the following actions: . Construct a structure Student that consists of the following fields: ID, marks, grade . A function with the following prototype: void fill (Student *); // It fills the object fields from the user. o A function with the following prototype: void print (Student *); // It prints the object fields. Inside the main function: . Ask the user to specify the number of students. Create a dynamic array of the size specified by the user for the students. . Fill the array elements by calling the first function. Print the array elements by calling the second function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
