division by zero not an error for cc?
division by zero not an error for cc?
- Subject: division by zero not an error for cc?
- From: Boz Jennings <email@hidden>
- Date: Wed, 19 Sep 2001 16:37:09 -0700
Hi all,
Why does the following not give me a division by zero error?
int main(void) {
result = 1 / 0;
printf( "%s%d\n",
"result is ", result );
return 0;
}
Thanks,
boz