How do i fix this error? error: expected expression before ‘list’?

here is a snippet of my code:

typedef struct node

{

char name[61];

int month;

int day;

int year;

struct node *next;

}node;

typedef struct list

{

node *head;

node *tail;

}list;

void main_menu(list* List)

{

//some code

}

int main(void)

{

main_menu(list* List); //Here is the error*****

return 0;

}

//But i need the 'list' initialization for these and some other functions in my code.

list *create_list(node *head)

{

some code//

}

list *insert_list(list *plist, node *pnode, node *new_node)

{

// some code

}

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 1QUIZZ.COM - All rights reserved.