Question: Exercise 3 : Pointers and arrays The following structure is used to store some class marks of Computer Methods 1 . Given the following declarations

Exercise 3: Pointers and arrays
The following structure is used to store some class marks of Computer Methods 1.
Given the following declarations that store the marks of 5 students .
(a) What does the execution of each of the following instructions produce?
(a.1) printf("
The Name is =8s", p->Name);
(a.2) printf("
The tutorial marks is = sf f'',(**(p+1)). Tutorials[0]);
(a.3) printf("
The character of the Student ID is = ofc", CompMeths1[1].Stid[0]);
(a.4) printf("
The test mark is = of f", p->Tests[2]);
(b) Write a function that scans CompMeths1 with a pointer and prints the highest mark scored in evaluations (tests
and tutorials), together with the names and numbers of the student(s) who achieved it.
(c) Write a function that scans CompMeths1 with a pointer and prints the names and numbers of students with the
highest average mark in tutorials and tests.
Exercise 3 : Pointers and arrays The following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Accounting Questions!