Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site unm-cvax.UUCP
Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!houxm!houxz!vax135!floyd!cmcl2!lanl-a!unm-cvax!janney
From: janney@unm-cvax.UUCP
Newsgroups: net.micro.pc
Subject: Re: DeSmet C bugs
Message-ID: <952@unm-cvax.UUCP>
Date: Wed, 13-Jun-84 23:35:58 EDT
Article-I.D.: unm-cvax.952
Posted: Wed Jun 13 23:35:58 1984
Date-Received: Fri, 15-Jun-84 00:29:30 EDT
References: <7338@unc.UUCP>
Organization: Univ. of New Mexico, Albuquerque
Lines: 14

> 2) the name of an array is not always synonymous with the
> 	pointer to the first element of the array, i.e: it may
> 	be necessary to say:
> 		double a[10][20]
> 		double *pa;
> 		pa = &a[0][0];
> 	and use pa rather than a for subscript offset calculations;

a is not the same as &a[0][0]: it is the same as &a[0], a pointer to
a vector of 20 doubles.  This is not a bug but part of the language:
without it multi-dimensional indexing wouldn't work right.

Jim Janney
{{convex,ucbvax,gatech}!unmvax, {purdue,lbl-csam,cmcl2}!lanl-a}!unm-cvax!janney