From: "M. Powell" Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer Subject: Re: Iteration vs. Recursion... Date: Fri, 06 Aug 1999 20:01:09 GMT Organization: Deja.com - Share what you know. Learn what you don't. Lines: 22 Message-ID: <7ofett$niu$1@nnrp1.deja.com> References: <7n7s1h$ms6$1 AT autumn DOT news DOT rcn DOT net> <37978194 DOT 17661031 AT news DOT cso DOT uiuc DOT edu> <01bed879$332ecc60$9154f6cc AT symbology DOT symbology DOT com> NNTP-Posting-Host: 198.59.170.33 X-Article-Creation-Date: Fri Aug 06 20:01:09 1999 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98) X-Http-Proxy: 1.1 x37.deja.com:80 (Squid/1.1.22) for client 198.59.170.33 X-MyDeja-Info: XMYDJUIDmike_powell To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <01bed879$332ecc60$9154f6cc AT symbology DOT symbology DOT com>, "Dave Dutcher" wrote: > But I couldn't help noticing that a lot of people suggested switch > statements. I wonder if people suggested a switch statement because > the orignal poster was looking to increase his speed, or did they > suggest it because they think switch statements are more readable? > I am wondering because, from what I have heard, switch statements > are no faster than a whole bunch of if statements. I'm uncertain of the speed of switch statements versus if statements, but some compilers may choke on an excessive number of if..else statements stacked upon one another. ============================== M. Powell mpowell AT asctmd DOT com http://www.intermec.com/ Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.