Question: Write a C program Write an update function to allow a user to update a student mark. This function should take in two parameters (it
Write a C program

Write an update function to allow a user to update a student mark. This function should take in two parameters (it can take in more parameters, but must take in at least these two): ID - a studentld val - the new mark for that student This function will iterate through the studld array searching for an element which matches ID. If a match is found, then the corresponding position in the marks array will be set to val and the position where the match was found will be returned. If ID is not found, -1 is returned. Write an update function to allow a user to update a student mark. This function should take in two parameters (it can take in more parameters, but must take in at least these two): ID - a studentld val - the new mark for that student This function will iterate through the studld array searching for an element which matches ID. If a match is found, then the corresponding position in the marks array will be set to val and the position where the match was found will be returned. If ID is not found, -1 is returned
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
