When I try to compile, I get the error:
error: expected expression before 'char'
Here is the part it talks about:
Why is this not working?Code:int get_names(int students, char names[students][20]) { int i; for (i = 0; i < students; ++i) { printf("Enter name for Student %d: ", i); scanf("%s", names[i]); } return char names[students]; }