c - Array function pointer referencing a function using a mulidimensional array -


i beginner in c programming. trying reference following functions in array function pointer shown in processgrades 4 element array. having trouble getting grades array 3 x 4 pass through functions. trying use pointers not seem formating pointer properly. appreciate or reference understand how this. reference basic.

void minimum(int grades[][exams], size_t pupils, size_t tests); void maximum(int grades[][exams], size_t pupils, size_t tests); void average(int grades[][exams], size_t pupils, size_t tests); void printarray(int grades[][exams], size_t pupils, size_t tests);  void(*processgrades[4])(int, size_t, size_t) = { printarray, minimum, maximum, average }; 

the first argument type of pointer incorrect. should change int int[][exams].


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -