Question: c programming QUESTION 4 [20 MARKS] You are a programmer in a team developing a software which is to accepts up to 1000 student records
QUESTION 4 [20 MARKS] You are a programmer in a team developing a software which is to accepts up to 1000 student records which comprises of the student name, student id, CGPA and best student indicator. The main function which is being developed by your team mate will collect those data in 3 separate arrays for each parameter. These data should be sent to your function in the most memory officient method. Your function is to calculate the average CPGA to be returned and identify the highest score for CGPA to be directly written into the array passed by the main function (a) Identify the data types for each parameter [4 Marks) (b) Indicate whether this request is a pass by parameter or pass by reference. [2 marks] (c) Develop the completo C code for the function definition function call and the function declaration 114 Marks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
