L
L
Luke LikeSkywalker2019-06-02 07:59:54
Algorithms
Luke LikeSkywalker, 2019-06-02 07:59:54

What does this block of code do? How do pointers work?

How do the pointers in these two lines behave?
5cf35762cfb07162589511.jpeg
Namely, the lines

n.next = head;
head = n;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lz961, 2019-06-02
@lz961

build up a singly linked list from the beginning

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question