[Solved] Linked list program for student average
Heading Hi, I have not looked thoroughly in the code . But , in a quick look I spotted the following basic problem nextPtr should be a pointer, you are creating an instance and copying the contents of the next structure. This is not efficient. I will declare it as below struct listNode *nextPtr; / … Read more