home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16095 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1011 b   |  22 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!wupost!gumby!yale!yale.edu!think.com!ames!kronos.arc.nasa.gov!iscnvx!netcomsv!netcom.com!sjs
  3. From: sjs@netcom.com (Stephen Schow)
  4. Subject: To Recurse or NOT to recurse?
  5. Message-ID: <1992Nov6.185136.8055@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. Date: Fri, 6 Nov 1992 18:51:36 GMT
  8. Lines: 12
  9.  
  10. What is better to do when traversing a linked list..... SHould I use recursion
  11. to search down through the list for the last node, or should I use a while
  12. loop?  What or the pro's and con's of each?
  13.  
  14. Thanks in advance
  15. -- 
  16. ------------------------------------------------------------------
  17. Steve Schow    | But you don't have to use the claw, if you
  18. sjs@netcom.com | pick the pear with the big paw paw......
  19.                | Have I given you a clue......?
  20.                |                       - Baloo the Bear
  21. ------------------------------------------------------------------
  22.