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 : Pointers and arrays
The following structure is used to store some class marks of Computer Methods
Given the following declarations that store the marks of students
a What does the execution of each of the following instructions produce?
a printf
The Name is pName;
a printf
The tutorial marks is sf Tutorials;
a printf
The character of the Student ID is ofc", CompMethsStid;
a printf
The test mark is of f pTests;
b Write a function that scans CompMeths with a pointer and prints the highest mark scored in evaluations tests
and tutorials together with the names and numbers of the students who achieved it
c Write a function that scans CompMeths with a pointer and prints the names and numbers of students with the
highest average mark in tutorials and tests.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
