home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- 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
- From: sjs@netcom.com (Stephen Schow)
- Subject: To Recurse or NOT to recurse?
- Message-ID: <1992Nov6.185136.8055@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Date: Fri, 6 Nov 1992 18:51:36 GMT
- Lines: 12
-
- What is better to do when traversing a linked list..... SHould I use recursion
- to search down through the list for the last node, or should I use a while
- loop? What or the pro's and con's of each?
-
- Thanks in advance
- --
- ------------------------------------------------------------------
- Steve Schow | But you don't have to use the claw, if you
- sjs@netcom.com | pick the pear with the big paw paw......
- | Have I given you a clue......?
- | - Baloo the Bear
- ------------------------------------------------------------------
-