Jump to content

Singly-linked list/Element removal: Difference between revisions

m
→‎{{header|Fortran}}: Clarify knowledge about the linked-list.
(Added a basic task description)
m (→‎{{header|Fortran}}: Clarify knowledge about the linked-list.)
Line 55:
 
WRITE (6,*) "Off with the head!"
CALL LLREMOVE(LINK,3LINK(0)) !LINK(0) fingers the head element.
CALL LLFOLLOW(LINK)
 
WRITE (6,*) "And off with the tail."
CALL LLREMOVE(LINK,5) !The tail element is not tracked.
CALL LLFOLLOW(LINK) !But, I know where it was, in this example.
 
END</lang>
</lang>
Output:
<pre>
1,220

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.