I am newbie to C and getting the compilation error in the following function.
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];
}
Error:
return char names[students];
error: expected expression before 'char'