Known struct members of stu int id, char name [32] and 1 door int score, complete function
Int findMax (struct stu [s], int num, struct stu * result)
Num is the total number of students, to find the highest grade in the student s student,
The results by using the result back to the calling routine, and the function returns a few points,
Three people are high score of 99, for example, the function returns 3, and three information to store the result of
CodePudding user response:
If there are multiple points, how do you return a pointer to the result? If it is allocated arrays, and not the size of the array; If you want to dynamically created in the function, the parameters should be struct stu * & amp; result