Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Message-ID | <4EB8F150.6704@mindspring.com> (permalink) |
|---|---|
| Date | 2011-11-08 04:07 -0500 |
| From | pete <pfiland@mindspring.com> |
| Organization | PF |
| Newsgroups | comp.lang.c |
| Subject | Re: Array of Integers ? |
| References | <4eb8df96$0$281$14726298@news.sunsite.dk> <j9aocd$9b5$1@speranza.aioe.org> <b1869e7d-eaed-4bbc-a1cf-1bbea74ee88c@3g2000vbp.googlegroups.com> |
Nick Keighley wrote:
>
> On Nov 8, 8:14 am, jacob navia <ja...@spamsink.net> 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
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Array of Integers ? arnuld <sunrise@invalid.address> - 2011-11-08 07:51 +0000
Re: Array of Integers ? Ike Naar <ike@iceland.freeshell.org> - 2011-11-08 08:11 +0000
Re: Array of Integers ? jacob navia <jacob@spamsink.net> - 2011-11-08 09:14 +0100
Re: Array of Integers ? Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-11-08 00:23 -0800
Re: Array of Integers ? pete <pfiland@mindspring.com> - 2011-11-08 04:07 -0500
Re: Array of Integers ? tom st denis <tom@iahu.ca> - 2011-11-08 06:23 -0800
Re: Array of Integers ? "Scott Fluhrer" <sfluhrer@ix.netcom.com> - 2011-11-08 10:08 -0500
Re: Array of Integers ? Noob <root@127.0.0.1> - 2011-11-08 16:25 +0100
Re: Array of Integers ? bks@panix.com (Bradley K. Sherman) - 2011-11-08 15:39 +0000
Re: Array of Integers ? Keith Thompson <kst-u@mib.org> - 2011-11-08 13:48 -0800
Re: Array of Integers ? Keith Thompson <kst-u@mib.org> - 2011-11-09 19:34 -0800
Re: Array of Integers ? Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-11-08 06:59 -0800
Re: Array of Integers ? jacob navia <jacob@spamsink.net> - 2011-11-08 22:48 +0100
Re: Array of Integers ? Chad <cdalten@gmail.com> - 2011-11-08 07:12 -0800
Re: Array of Integers ? pete <pfiland@mindspring.com> - 2011-11-08 11:49 -0500
Re: Array of Integers ? James Kuyper <jameskuyper@verizon.net> - 2011-11-08 12:13 -0500
Re: Array of Integers ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-11-08 21:45 +0000
Re: Array of Integers ? James Kuyper <jameskuyper@verizon.net> - 2011-11-08 16:48 -0500
Re: Array of Integers ? Keith Thompson <kst-u@mib.org> - 2011-11-08 14:25 -0800
Re: Array of Integers ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-11-08 22:42 +0000
Re: Array of Integers ? Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-11-10 12:01 +0200
Re: Array of Integers ? Keith Thompson <kst-u@mib.org> - 2011-11-10 03:14 -0800
Re: Array of Integers ? Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-11-10 17:41 +0200
Re: Array of Integers ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-11-10 16:44 +0000
Re: Array of Integers ? Keith Thompson <kst-u@mib.org> - 2011-11-10 10:59 -0800
Re: Array of Integers ? Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-11-11 17:49 +0200
Re: Array of Integers ? Keith Thompson <kst-u@mib.org> - 2011-11-08 14:00 -0800
Re: Array of Integers ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-11-09 00:57 +0000
Re: Array of Integers ? pete <pfiland@mindspring.com> - 2011-11-09 00:05 -0500
Re: Array of Integers ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-11-09 11:06 +0000
Re: Array of Integers ? Keith Thompson <kst-u@mib.org> - 2011-11-09 13:36 -0800
Re: Array of Integers ? Tim Rentsch <txr@alumni.caltech.edu> - 2012-01-25 00:45 -0800
Re: Array of Integers ? Keith Thompson <kst-u@mib.org> - 2012-01-25 02:56 -0800
Re: Array of Integers ? pete <pfiland@mindspring.com> - 2011-11-09 18:34 -0500
Re: Array of Integers ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-11-10 00:57 +0000
Re: Array of Integers ? Keith Thompson <kst-u@mib.org> - 2011-11-08 22:14 -0800
Re: Array of Integers ? Tim Rentsch <txr@alumni.caltech.edu> - 2012-01-25 01:46 -0800
Re: Array of Integers ? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2011-11-08 01:39 -0800
Re: Array of Integers ? Keith Thompson <kst-u@mib.org> - 2011-11-08 14:05 -0800
Re: Array of Integers ? James Kuyper <jameskuyper@verizon.net> - 2011-11-08 06:19 -0500
csiph-web