My function is this....
Code:
struct names *open_classes_taken(int *name_count, int *class_count[]);
it returns a structure for me. And it uses an integer that i'll need later which is the first part. The second part it uses is an array of integers. Which I'll use later

Code:
int main(){


    int name_count = 0;
    int class_count[10] = {0};
    struct names *all;
 
    all = open_classes_taken(&name_count, &class_count[]);
there is my main that is needed

So my function is working. Getting an error of "syntax error before ] token" when I call my function. Trying to use it as a pointer. What am I doing wrong?
I feel like this is a rookie question, but I was surfing the web and couldn't find much on it for what I'm trying to do.