Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | jgk@panix.com (Joe keane) |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Sorry for interrupt,because my mother language is not English,it may be a little confused to read the c programming language. |
| Date | 2012-06-13 21:07 +0000 |
| Organization | Public Access Networks Corp. |
| Message-ID | <jraveo$l64$1@reader1.panix.com> (permalink) |
| References | <7b7c33d0-07e6-48ba-bd4b-f947e965f9bf@googlegroups.com> <slrn3vfsjtdtvr.o50.ike@iceland.freeshell.org> |
In article <slrn3vfsjtdtvr.o50.ike@iceland.freeshell.org>,
Ike Naar <ike@iceland.freeshell.org> wrote:
>They probably mean that with this type definition:
>
> struct S { int i; double d; };
>
>the declaration
>
> struct S x;
>
>can be seen as a shorthand for
>
> struct { int i; double d; } x;
No, it's just wrong.
A struct defined with a tag can be referred to by the same tag, and then
it's the same type; it's probably illegal to redefine it with the same
tag, even if the member types and names are identical, and a struct with
a tag will never be the same type as an anonymous struct, and neither
will two anonymous structs be the same type.
So that's part of the problem he's having.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Sorry for interrupt,because my mother language is not English,it may be a little confused to read the c programming language. Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-11 23:47 -0700
Re: Sorry for interrupt,because my mother language is not English,it may be a little confused to read the c programming language. Ike Naar <ike@iceland.freeshell.org> - 2012-06-12 08:04 +0000
Re: Sorry for interrupt,because my mother language is not English,it may be a little confused to read the c programming language. Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-12 08:26 -0700
Re: Sorry for interrupt,because my mother language is not English,it may be a little confused to read the c programming language. jgk@panix.com (Joe keane) - 2012-06-13 21:07 +0000
Re: Sorry for interrupt,because my mother language is not English,it may be a little confused to read the c programming language. Ike Naar <ike@iceland.freeshell.org> - 2012-06-14 04:35 +0000
Re: Sorry for interrupt,because my mother language is not English,it may be a little confused to read the c programming language. Barry Schwarz <schwarzb@dqel.com> - 2012-06-12 08:45 -0700
Re: Sorry for interrupt,because my mother language is not English,it may be a little confused to read the c programming language. Zhang Yuan <zhabgyuan1993@gmail.com> - 2012-06-12 08:51 -0700
csiph-web