Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 08 Nov 2011 03:07:29 -0600 Message-ID: <4EB8F150.6704@mindspring.com> Date: Tue, 08 Nov 2011 04:07:28 -0500 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: Array of Integers ? References: <4eb8df96$0$281$14726298@news.sunsite.dk> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lines: 58 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.154.222.196 X-Trace: sv3-jJ9HQTn0hGFNUtfxRhoiKaA7f4/VU+KJtuwUlP+LO3LKkfm+zLxQtBfDovehijhNVeUvwzg2oJWkybo!SDxBICu6AosVKXgKcuM+khkZyLSRxcW3es3ly3NwwPYQ28qIDwxqd3Yv+rqqV2yEvxbez1Yk3Qbr!woJXjcGykC8= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3241 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:12880 Nick Keighley wrote: > > On Nov 8, 8:14 am, jacob navia wrote: > > Le 08/11/11 08:51, arnuld a écrit : > > > > I wrote my blog on Insertion Sort some time back and used words "Array of > > > Integers" on that. I was told by someone that there is nothing like array > > > of integers in C. C has array of objects only. > > > > > So how do we differentiate between array of integers and array of > > > characters (not string constant) in communication if there is no such > > > thing as array of integers ? > > > > You define an array of integers like this: > > > > int array[256]; > > > > The person that told you that arrays of integers do not exist in C is > > completely wrong. > > I agree. The array-of-T terminology has been around for an age. cdecl > and such like use the terminology. > > Ah, from the standrard (draft '89) > > * An array type describes a contiguously allocated set of objects > with a particular member object type, called the element > type .Array > types are characterized by their element type and by the number of > members of the array. An array type is said to be derived from its > element type, and if its element type is T , the array type is > sometimes called ``array of T .'' The construction of an array type > from an element type is called ``array type derivation.'' C90 also has: 6.1.2.5 Types There are four signed integer types, designated as signed char, short int, int, and long int. For each of the signed integer types, there is a corresponding (but different) unsigned integer type (designated with the keyword unsigned) that uses the same amount of storage (including sign information) and has the same alignment requirements. The type char, the signed and unsigned integer types, and the enumerated types are collectively called integral types. In C99, 6.2.5 Types 17 The type char, the signed and unsigned integer types, and the enumerated types are collectively called integer types. -- pete