From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f6aa,76b1fcc14e8dced X-Google-Attributes: gid10f6aa,public X-Google-Thread: 109fba,76b1fcc14e8dced X-Google-Attributes: gid109fba,public X-Google-Thread: 114917,76b1fcc14e8dced X-Google-Attributes: gid114917,public X-Google-Thread: 103376,c9c309a1859318a1 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,8b6c45fbebd7d3b7 X-Google-Attributes: gid1014db,public From: miker3@ix.netcom.com (Mike Rubenstein) Subject: Re: HELP ! need to insert value in array !! Date: 1997/06/29 Message-ID: <33b64c2f.43589878@nntp.ix.netcom.com>#1/1 X-Deja-AN: 253405568 References: <33A9C27C.22F7@post4.tele.dk> <5oci49$97g@crl.crl.com> <866920621snz@genesis.demon.co.uk> <5p0v7l$9uc@nntp.seflin.org> Organization: Netcom X-NETCOM-Date: Sun Jun 29 4:56:12 AM PDT 1997 Newsgroups: comp.lang.c,comp.lang.c++,comp.os.msdos.programmer,comp.lang.asm.x86,comp.lang.ada Date: 1997-06-29T04:56:12-07:00 List-Id: dewar@merv.cs.nyu.edu (Robert Dewar) wrote: > i am not quite sure who said > > <<: An impelemenattion is not permitted to pad between array elements.?? > > But it is definitely wrong, of course an implementatoin is permitted > padding between array elements. > Perhaps it was someone who actually knows C. Whoever said it was correct. Objects may be padded in that there may be bytes that are not used, but there must be no additional padding between array elements. For any type T, T a; T b[5]; we must have sizeof b == 5 * sizeof a. There can be no unused space between b[0] and b[1]. Michael M Rubenstein