Message-ID: <19990715204430.18320.rocketmail@web105.yahoomail.com> Date: Thu, 15 Jul 1999 20:44:30 +0000 (GMT) From: Mohamed Saad Subject: question about if statements! To: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: djgpp AT delorie DOT com Hi all, How are u? hope all is allright! well... just a small questions about if()! does djgpp continue to evaluate an expression of an if statement even if the result is readily available? i.e. consider this... if (0&&dummy1) statement here; well it evaluate dummy1?? if it doesnot, can i count on it? there aren't any exceptions?? i need it mainly for this example! if(structptr&&structptr->value>20) statement; i.e. if structptr is not null and there is a condition on a certain field! if djgpp evaluates the whole expression and structptr is NULL, it will cause a GPF!!! that's why i need it!! :) thanx in advance! c u soon! Urs forever, Mohamed El Dawy _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com