⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠
Text Elements
10
200
10
300
10
NULL
100
200
300
NULL
*HEAD
100
#1 Insert at end
10
200
10
300
10
NULL
100
200
300
NULL
*HEAD
100
15
800
newnode
10
200
10
300
10
NULL
100
200
300
NULL
*HEAD
100
10
100
800
current→next = newnode
(n-1)th node points to newnode
10
200
10
300
10
NULL
100
200
300
NULL
*HEAD
100
15
800
newnode
newnode→next = current→next
newnode leads to n’th node
10
200
10
300
10
NULL
100
200
300
NULL
*HEAD
100
current
temp
free(temp)