Article View: de.test
Article #51Re: Nein, nein, nein!
From: Marcel Logen
Date: Thu, 22 Oct 2026 14:33
Date: Thu, 22 Oct 2026 14:33
40 lines
3056 bytes
3056 bytes
Dennis Preiser in de.test:
[...]
>Ist nicht garantiert.
>
>| C11 6.7.9 Initialization
>|
>| If an object that has automatic storage duration is not initialized
>| explicitly, its value is indeterminate. If an object that has static or
>| thread storage duration is not initialized explicitly, then:
>| — if it has pointer type, it is initialized to a null pointer;
>| — if it has arithmetic type, it is initialized to (positive or unsigned)
>| zero;
Danke.
| user15@o15:/tmp$ cat storage-duration.c
| #include <stdio.h>
| int main() {
| {
| auto int x;
| printf("%i\n",x);
| }
| }
| user15@o15:/tmp$ gcc -std=c11 storage-duration.c
| user15@o15:/tmp$ ./a.out
| 0
Bei mir kommt da trotz "indeterminate" immer 0 heraus.
Vielleicht Zufall.
Marcel (Lines: 40)
--
╮ ╭──╮ ╭──╮ ╭──╮ ╭──────────────╮ ..48..╭─────╮ ╭─────╮
╰─────╯ ╰─╯ ╰─╯ ╰───╮ ╰──────╮ │ ..48..╰───╮ ╰─╮ ╰──╮ ╰─
╭───╯ ..26..╭─╯ ╭────╯ ╭─╮ ╭──╮ │ ╰─╮ │
..14..╰───────────╯ ╰───────╯ ╰───╯ ╰───╯ ╰───╯
Technical Details
Message-ID:
<20261022th143352@o15.ybtra.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mailReferences:
<87jync36yh.fsf@dear-messner.dont-email.me> <20261020tu194524@o15.ybtra.de> <87ld7r21ff.fsf@yeti.tilde.institute> <87zew7xjl7.fsf@dear-messner.dont-email.me> <20261021we204605@o15.ybtra.de> <20261021we205243@o15.ybtra.de> <20261021we205645@o15.ybtra.de> <87h5iexs2b.fsf@dear-messner.dont-email.me> <AABq2b8JL4cAACMG.A3.flnews@o15.ybtra.de> <87a4o6xi1h.fsf@dear-messner.dont-email.me> <20261022th104811@o15.ybtra.de> <0TmcfpaeI207Nfm%dennis@coredump.d--p.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail
From: Marcel Logen <333200007110-0201@ybtra.de>
Newsgroups: de.test
Subject: Re: Nein, nein, nein!
Date: Thu, 22 Oct 2026 16:33:51 +0200
Organization: Bureau Logen
Message-ID: <20261022th143352@o15.ybtra.de>
References: <87jync36yh.fsf@dear-messner.dont-email.me> <20261020tu194524@o15.ybtra.de> <87ld7r21ff.fsf@yeti.tilde.institute> <87zew7xjl7.fsf@dear-messner.dont-email.me> <20261021we204605@o15.ybtra.de> <20261021we205243@o15.ybtra.de> <20261021we205645@o15.ybtra.de> <87h5iexs2b.fsf@dear-messner.dont-email.me> <AABq2b8JL4cAACMG.A3.flnews@o15.ybtra.de> <87a4o6xi1h.fsf@dear-messner.dont-email.me> <20261022th104811@o15.ybtra.de> <0TmcfpaeI207Nfm%dennis@coredump.d--p.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 22 Oct 2026 16:33:51 +0200
Injection-Info: tota-refugium.de;
logging-data="225671"; mail-complaints-to="abuse@news.tota-refugium.de"
Keywords: ignore
User-Agent: flnews/1.3.0 (for GNU/Linux)
Cancel-Lock: sha1:lVoGe8F/lkM9zuiBF1wA8cKxciA=
X-Face: (6fqN}1iHlBp;@7aGUlZ@DO6lifTsCGxk2R>m6#fGw5g@I.6vo%5wmaH39Rlz}Tt8AE<w<ELCl3xhus.I*cyN}{|EL+19I.rTqcL8Ma&wRsJh_nB<k@y80:,F:vqJB|:f9TU!%2Dl--$AI78~3iKM.*B*
X-User-ID: eJwNxckBwDAIA7CVUsAQxuGo9x+h1UdQf3zCHG4geOtPCo3sjOJpMV8p5WpFjOzL9p1AnqXcDynfEcg=