Please help in debug even cout in mian not working
hi @abhay170
there are many mistakes in the code
i have updated a few and those commented need to be updated by you
you had declared functions within int main() which is not allowed in c++ or c
refernce binding was not done properly
u need to update the code:
write what the display function does, that is define the function u have just given a declaration and called it inside main which is wrong
// insertion_at_beg(data);
// insertion_at_end(data);
have the same problem u have just declared them and no definition has been provided.
Please understand the basics of C language as i see that u are unfamiliar with the basicx.
please go through the following link to learn to create a linked list in c language
ur updated code
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.