Mar 12, 2011

Algorithm for the print the list


Procedure PRINT (HEAD)
[This Procedure print the information field of the list and HEAD is the first element of the list]
1. [Repeat step thru]
          Repeat while LINK (HEAD) != NULL
2. [Print the Information]
          Write (INFO (HEAD))
3. [Finished]
          Return

No comments:

Post a Comment