Path: csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Christmas Quiz 2022 Date: Tue, 27 Dec 2022 10:25:08 -0800 Organization: None to speak of Lines: 22 Message-ID: <87tu1gpuuz.fsf@nosuchdomain.example.com> References: <354067d8-9199-4090-b6c5-68910515d642n@googlegroups.com> <5a4dcd63-491a-ca9a-a742-06c5b974935e@niles.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: reader01.eternal-september.org; posting-host="0af59a5445f55bd00f3cbbbd179e58cb"; logging-data="3883348"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YhCbpjmBOXl/+/NlplBfN" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:bi8eVkBKvw0/wK2WvAxI3qoDvXk= sha1:P4CWu+jakVpd2G5wY2y1bi54kdM= Xref: csiph.com comp.lang.c:168664 Öö Tiib writes: > On Tuesday, 27 December 2022 at 11:22:37 UTC+2, Niles Rogoff wrote: >> On 12/18/22 13:18, Tony Oliver wrote: >> > Signal SIGFPE is raised. >> >> What happens to programs running on systems that don't support signals? :^) > > The nasal demons by standard. Or if the implementors were trying to be > nice (they sometimes try) then #include and using stuff from it > might give some diagnostics. Nile snipped the context (probably making a joke). The claim was that integer division by 0 raises SIGFPE. The standard doesn't say or imply anything like that. SIGFPE isn't even one of the 3 signals requires by the standard. Integer division by 0 is undefined behavior. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for XCOM Labs void Void(void) { Void(); } /* The recursive call of the void */