How to solve this error "conflicting data types" in function declaration? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to solve this error "conflicting data types" in function declaration?

https://code.sololearn.com/cFhVUHdJwGmE/?ref=app

12th Apr 2022, 1:54 AM
Rishi
Rishi - avatar
2 Answers
+ 6
No errors, create struct in before declaration. struct node { int data; struct node *next; }; struct node *head; void insert_at_beginning(int); int calcsize(struct node *head); void midinsert(struct node **ptr, int data);
12th Apr 2022, 2:06 AM
Ferdiansyah
Ferdiansyah - avatar
+ 2
Ferdiansyah oh yeah was in a hurry, thanks!
12th Apr 2022, 4:19 PM
Rishi
Rishi - avatar