• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
division by zero not an error for cc?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: NSWindowController & NSDocument
  • Next by Date: Re: Aqua Interface Guidelines & Close Window location ?
  • Previous by thread: NSWindowController & NSDocument
  • Next by thread: Re: division by zero not an error for cc?
  • Index(es):
    • Date
    • Thread