Step 7: Defining the update_reg(student st, int itemcount) function to update a specified record. The update process starts by asking the user to input the id of the record to be changed. The id value is checked to make sure it really exists. If it exists the change to the target record can be made after asking the user to input the new value of the field that need change.
This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages: