Write a program that reads the grades of 10 students, stores them in an array, and displays the maximum and the minimum grade and their positions in the array. The program should check if the input grades are within [0, 10]. Use pointer arithmetic to process the array.
References: C From Theory