0 LIKES LikeUnLike
struct ListNode{ int data ; ListNode *next ;};It's just the beginning of the code with a long linked list. My question is that how does the compiler know that what is "next"..for instance...the use for "next" after this is int listLength(ListNode *head){ int count = 0 ; ListNode *current = head ; while (current != NULL) { count++ ; current = current->next ; } return count ;}after the current is defined, how does the compiler know that "next" is really the next item in the list? Thank you for any help!
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 3 answers.