[Solved] Linked List quetion [closed]

main() { head = (node*)malloc(sizeof(node)); create(head); print(head); c = count(head); //See here you are sending the actual node, which is head. } int count(node* C_list) { if(C_list->next==NULL) //–>Here the if condition is checking for the next node (head->next) whether it is null or not. return(0); //–>If the next node is null, it means no nodes … Read more