public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: Alexandre Oliva <oliva@dcc.unicamp.br> To: Aurel Balmosan <ab@orga.com> Cc: egcs-bugs <egcs-bugs@cygnus.com> Subject: Re: Initialising an union Date: Wed, 19 Aug 1998 14:51:00 -0000 [thread overview] Message-ID: <or4sv8ejg4.fsf@araguaia.dcc.unicamp.br> (raw) In-Reply-To: <35DA8595.B69BDFC4@orga.com> Aurel Balmosan <ab@orga.com> writes: > As it is defined in ANSI-C a struct where only the first part is initialised > is filled with zero's. > This is defined in the ANSI-C Language Reference A.8.7: > Contains the initializer-list less initializer then the structure component > has the rest values will be set to zero. There must not be more initializer > than values in a structure component. Does it apply to local non-static variables? I'm pretty sure this is true for variables in static storage, but how about local ones? Unfortunately, I don't have access to the ANSI-C Standard :-( -- Alexandre Oliva mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org http://www.dcc.unicamp.br/~oliva Universidade Estadual de Campinas, SP, Brasil
next prev parent reply other threads:[~1998-08-19 14:51 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 1998-08-18 0:39 Aurel Balmosan 1998-08-18 18:14 ` Alexandre Oliva 1998-08-19 2:44 ` Aurel Balmosan 1998-08-19 14:51 ` Alexandre Oliva [this message] 1998-08-20 2:41 ` Aurel Balmosan 1998-08-20 8:15 ` Alexandre Oliva -- strict thread matches above, loose matches on Subject: below -- 1998-08-17 7:51 Aurel Balmosan 1998-08-18 11:46 ` Jeroen Dobbelaere 1998-08-19 4:40 ` Aurel Balmosan 1998-08-19 10:03 ` Jeroen Dobbelaere
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=or4sv8ejg4.fsf@araguaia.dcc.unicamp.br \ --to=oliva@dcc.unicamp.br \ --cc=ab@orga.com \ --cc=egcs-bugs@cygnus.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).