#include <stdio.h>
int main() {
int a = 0;
if (1.0/0.0)
printf("result was true");
else
printf("result was false");
}
I get "result was true" in the compilers i tried - Is this the right
behaviour expected? shouldn't nans and infs treated as false?
thanks!
-ganesh
--
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
-- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line. Sorry.