I was trying to do this exercise code in initialization of arrays and I keep getting the error that's stated in the title. Researching online I've seen that defining SIZE
as constant should do the job but it's not working for me. The thing is I've copied this code from my professor and it ran fine for him. Can you help me?
#include <stdio.h>
int main(void) {
const int SIZE = 5;
int grades[SIZE] = {78, 67, 92, 83, 88};
double sum;
int i;
[...]
}