Sorting with structs, arrays, and pointers

I keep getting an error "cannot convert parameter 1 from 'char (*)[15]' to 'Student_Type *" in the swap call.
gradclass is a struct and Student_Type is the name of the struct. Im trying to sort names with this. Anyone know how to fix this?

Your program doesn't work because of several problems:
1) line 25: The array is too small. Your file contains 15 student records, but the array can only hold 10. Increase the size of the array to at least 15 (or the maximum in the data file). One way to resolve the problem is to use c++ vector class and you don't have to know how many student records are in the file.

2) line 104 is wrong. see previous posts

3) line 75: the value of i is wrong at that point because you previously used that variable on line 64. Declare a different variable that contains the number of records that were read in the data file and don't use it for anything else (except to pass to other functions).

4) line 95: The sort function has hard-coded the record count and ignores the integer that was pass to it. You need to correct that problem.

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...