home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!news.mentorg.com!caeco!asc386!mosmith
- From: mosmith@asc386 (Matt Smith)
- Subject: Re: To Recurse or NOT to recurse?
- Message-ID: <1992Nov10.003842.19169@asc386>
- Organization: Auto-Soft Corp.
- References: <1992Nov6.185136.8055@netcom.com>
- Date: Tue, 10 Nov 1992 00:38:42 GMT
- Lines: 10
-
- The question is whether to recusively desend a linked-list or
- to do it iteraviely( a while loop). My expeience has
- shown that the while loop is better in the long run.
-
- Reason: Recursion uses the stack to store the recusive stuff (hope
- that's not too techy) which tends to blow up. I prefer the other
- way
-
-
- mosmith!asc386@caeco.slc.mentorg.com
-