home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!usc!wupost!sdd.hp.com!network.ucsd.edu!mvb.saic.com!macro32
- From: SYSMGR@IPG.PH.KCL.AC.UK
- Newsgroups: vmsnet.internals
- Subject: C Language question
- Message-ID: <23000B53_00073190.00961C83B1DAD300$668_1@UK.AC.KCL.PH.IPG>
- Date: Thu, 8 OCT 92 11:17:27 BST
- Organization: Macro32<==>Vmsnet.Internals Gateway
- X-Gateway-Source-Info: Mailing List
- Lines: 21
-
- (To those who get offended by questions that stray outside a group's main
- intention - Sorry, please hit delete now. I'm not sure what the appropriate
- mail list is, and I do know that the folks that follow this one are likely
- to know!)
-
- Question: in C, if one declares char a[I][J], is there anything in the
- language standard that guarantees that &a[0][0] is the first of a set of
- I*J contiguous chars, and that a[i+1][0] is guaranteed to be the same
- storage location as a[i][J] ).
-
- A friend asserts that it is, and says his experience on several systems
- 'proves' this. My belief is that there is nothing that says this will
- always be the case, and that the only constraint is that every valid pointer
- a[i] will point to J chars. Which of us is right?
-
- Yours,
- Nigel Arnot
-
- NRA%ipg.ph.kcl.ac.uk@nsfnet-relay.ac.uk (internet)
- NRA%uk.ac.kcl.ph.ipg@ukacrl.bitnet (bitnet)
-
-