the above statement is the first element of the array? We just put a random number in the index, what guarantees that that would be the first element of the array?
Second, why np = np -->next is the next element of the array?
First, Why the above statement is the first element of the array? it's not. np becomes the head of a linked list (see nlist definition). Second, why np=np—>next is the next element of the array again, it's not. np gets assigned the next value, which can be the next node or null (see nlist definition)
Обсуждают сегодня