Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Ike Naar <ike@iceland.freeshell.org> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: linked list |
| Date | 2012-06-09 22:02 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <slrn3vfsjt7hvq.f7r.ike@iceland.freeshell.org> (permalink) |
| References | <bc9a4156-754e-4251-bfab-d75241dad420@googlegroups.com> <slrn3vfsjt5o3c.fhi.ike@sverige.freeshell.org> <lnsje49wob.fsf@nuthaus.mib.org> |
On 2012-06-09, Keith Thompson <kst-u@mib.org> wrote:
> Ike Naar <ike@sverige.freeshell.org> writes:
>> On 2012-06-09, Zhang Yuan <zhabgyuan1993@gmail.com> wrote:
>>> struct stu{
>>> int num;
>>> char name[12];
>>> int age[0];
>>
>> There is room for zero ages in the struct ...
> [...]
>
> Actually, C doesn't permit zero-sized arrays. Declarating "int age[0]",
> is a constraint violation, requiring a diagnostic (N1570 6.7.6.2p1).
True. Some compilers allow it as an extension
(e.g. gcc in default mode accepts it without a diagnostic).
With -ansi -pedantic gcc does give a diagnostic, but still generates
an executable.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
linked list Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-08 21:02 -0700
Re: linked list Kaz Kylheku <kaz@kylheku.com> - 2012-06-09 04:59 +0000
Re: linked list Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-08 22:13 -0700
Re: linked list Ian Collins <ian-news@hotmail.com> - 2012-06-09 17:47 +1200
Re: linked list Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-08 22:59 -0700
Re: linked list Ian Collins <ian-news@hotmail.com> - 2012-06-09 18:35 +1200
Re: linked list Ike Naar <ike@sverige.freeshell.org> - 2012-06-09 06:53 +0000
Re: linked list Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-09 00:53 -0700
Re: linked list 88888 Dihedral <dihedral88888@googlemail.com> - 2012-06-22 12:18 -0700
Re: linked list Ike Naar <ike@sverige.freeshell.org> - 2012-06-09 05:34 +0000
Re: linked list Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-08 22:51 -0700
Re: linked list Ike Naar <ike@sverige.freeshell.org> - 2012-06-09 06:45 +0000
Re: linked list Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-08 23:56 -0700
Re: linked list Keith Thompson <kst-u@mib.org> - 2012-06-09 11:17 -0700
Re: linked list Ike Naar <ike@iceland.freeshell.org> - 2012-06-09 22:02 +0000
Re: linked list Ian Collins <ian-news@hotmail.com> - 2012-06-09 17:49 +1200
Re: linked list Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-08 22:53 -0700
Re: linked list Ian Collins <ian-news@hotmail.com> - 2012-06-09 18:36 +1200
Re: linked list Keith Thompson <kst-u@mib.org> - 2012-06-09 11:20 -0700
Re: linked list pete <pfiland@mindspring.com> - 2012-06-09 06:49 -0400
Re: linked list pete <pfiland@mindspring.com> - 2012-06-09 07:28 -0400
Re: linked list Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-09 07:57 -0700
Re: linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-06-09 19:16 +0100
Re: linked list pete <pfiland@mindspring.com> - 2012-06-09 16:01 -0400
Re: linked list pete <pfiland@mindspring.com> - 2012-06-09 16:50 -0400
Re: linked list Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-09 18:21 -0700
Re: linked list pete <pfiland@mindspring.com> - 2012-06-10 00:11 -0400
Re: linked list Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-09 22:20 -0700
Re: linked list pete <pfiland@mindspring.com> - 2012-06-10 08:31 -0400
Re: linked list nick_keighley_nospam@hotmail.com - 2012-06-11 06:10 -0700
Re: linked list Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-11 09:16 -0700
Re: linked list Keith Thompson <kst-u@mib.org> - 2012-06-11 15:45 -0700
Re: linked list Michael Press <rubrum@pacbell.net> - 2012-06-14 12:47 -0700
csiph-web