Mail Archives: djgpp/1999/07/15/16:44:15
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
- Raw text -