Professional Documents
Culture Documents
Name :
Student No. :
Group : CS
QUESTION 1
int *p2;
int *p3 = &value3;
p2 = &value2;
p2 = p1;
value1 = *p3;
*p2 = *p3;
cout << value1 << value2 << value3;
QUESTION 2
This function read n input from user, and store the input in mathmarks [].
2 marks
This function read n input from user, and store the input in sciencemarks [].
2 marks
This function will total mathmark and scienceamark to find the average and the highest
average.
5 marks
d) Write the main program to input Math and science marks for 10 students.
e) Call the function average and display the highest average mark for student.
4 marks