Question:
(a) Explain the function fseek(). Using an appropriate example, write the full syntax for this function.
(b) Write a C or C++ program that will perform the following:
(i) Accept, as input, student names, marks for English, French and Mathematics for 10 students;
(ii) Compute the total and average marks for each student;
(iii) Write all the above information into a text file (marks.txt)
(c) Explain how sorting can be accomplished using selection sort. Illustrate your answer using the specific example of sorting the numbers 35, 1, 100, 75, 8 & 30 into ascending order.