[Code] Brainteaser

From: John (witpens@optushome.com.au)
Date: 11/21/01


I know we have alot of C philosophers out there, so I am going to pose
this to you:-

What is the difference between:-
if (!str || !*str) return;
and
if (!str) return;
else if (!*str) return;

My answer (I am guessing the reasons though) is that it stopped my mud
from crashing.

PS: I am running W2K with MSVC++ and patch19.

Anyone offer any insights?

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST