Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | James Kuyper <jameskuyper@verizon.net> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Funny C Program |
| Date | 2015-11-07 11:24 -0500 |
| Organization | Self |
| Message-ID | <563E25B0.8080504@verizon.net> (permalink) |
| References | <e1367c64-92c8-4c2e-abb1-0ebf2c27bce7@googlegroups.com> <24250e2c-bcdd-4425-a730-433ffc6f89e0@googlegroups.com> <87ziyqtybf.fsf@bsb.me.uk> <lnr3k21ujq.fsf@kst-u.example.com> <4f00f36b-8b20-49e1-ad96-0a782787ac05@googlegroups.com> |
On 11/06/2015 09:47 PM, jimzhou001@gmail.com wrote: > Oh,I asked this question because I got into trouble not initializing. If you provide even a single initializer for a array or struct, all of the other elements of the array, or the other members of the struct, get zero-initialized. However, if you provide no initializers, then unless the object has static storage duration, all of the elements of the array or the members of the struct have indeterminate values. It is never a good idea to make any use of an indeterminate value - in particular, an object whose value is indeterminate is allowed to be in a trap representation - attempting to read the value of an object containing a trap representation has undefined behavior.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Funny C Program jimzhou001@gmail.com - 2015-11-03 17:54 -0800
Re: Funny C Program bartekltg <bartekltg@gmail.com> - 2015-11-04 05:28 +0100
Re: Funny C Program Richard Heathfield <rjh@cpax.org.uk> - 2015-11-04 07:12 +0000
Re: Funny C Program bartekltg <bartekltg@gmail.com> - 2015-11-04 13:25 +0100
Re: Funny C Program bartekltg <bartekltg@gmail.com> - 2015-11-04 13:52 +0100
Re: Funny C Program jimzhou001@gmail.com - 2015-11-04 06:36 -0800
Re: Funny C Program jimzhou001@gmail.com - 2015-11-04 02:28 -0800
Re: Funny C Program bartekltg <bartekltg@gmail.com> - 2015-11-04 13:25 +0100
Re: Funny C Program Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-04 19:07 -0800
Re: Funny C Program bartekltg <bartekltg@gmail.com> - 2015-11-05 09:48 +0100
Re: Funny C Program Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-05 06:08 -0800
Re: Funny C Program Richard Heathfield <rjh@cpax.org.uk> - 2015-11-04 07:04 +0000
Re: Funny C Program jimzhou001@gmail.com - 2015-11-04 02:33 -0800
Re: Funny C Program Richard Heathfield <rjh@cpax.org.uk> - 2015-11-04 10:57 +0000
Re: Funny C Program jimzhou001@gmail.com - 2015-11-04 03:46 -0800
Re: Funny C Program luser droog <luser.droog@gmail.com> - 2015-11-04 10:46 -0800
Re: Funny C Program jimzhou001@gmail.com - 2015-11-04 15:14 -0800
Re: Funny C Program brian.oakley@stonybrook.edu - 2015-11-04 12:37 -0800
Re: Funny C Program jimzhou001@gmail.com - 2015-11-04 15:30 -0800
Funny C Program jimzhou001@gmail.com - 2015-11-06 16:40 -0800
Re: Funny C Program Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-11-07 01:04 +0000
Re: Funny C Program Keith Thompson <kst-u@mib.org> - 2015-11-06 17:12 -0800
Re: Funny C Program jimzhou001@gmail.com - 2015-11-06 18:47 -0800
Re: Funny C Program James Kuyper <jameskuyper@verizon.net> - 2015-11-07 11:24 -0500
Re: Funny C Program jimzhou001@gmail.com - 2015-11-07 16:21 -0800
Re: Funny C Program Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-11-08 00:46 +0000
Re: Funny C Program James Kuyper <jameskuyper@verizon.net> - 2015-11-07 19:56 -0500
Re: Funny C Program jimzhou001@gmail.com - 2015-11-07 19:08 -0800
Re: Funny C Program James Kuyper <jameskuyper@verizon.net> - 2015-11-08 10:58 -0500
Re: Funny C Program James Kuyper <jameskuyper@verizon.net> - 2015-11-12 13:31 -0500
Re: Funny C Program Keith Thompson <kst-u@mib.org> - 2015-11-12 11:59 -0800
Re: Funny C Program jimzhou001@gmail.com - 2015-11-17 23:00 -0800
Re: Funny C Program jimzhou001@gmail.com - 2015-11-18 00:12 -0800
Re: Funny C Program Keith Thompson <kst-u@mib.org> - 2015-11-18 09:01 -0800
Re: Funny C Program jimzhou001@gmail.com - 2015-11-17 23:00 -0800
Re: Funny C Program James Kuyper <jameskuyper@verizon.net> - 2015-11-06 20:07 -0500
csiph-web