"array" vs. "&array" ?

Chris Torek chris at mimsy.umd.edu
Sun Dec 24 03:25:21 AEST 1989


In article <1989Dec23.151411.3688 at virtech.uucp> cpcahil at virtech.uucp
(Conor P. Cahill) writes:
[re obtaining the address of an array, rather than the address of an
element of that array]
>main()
>{
> 	char a[10], (*p)[10];
> 
> 	p = (char (*)[10]) a;
>}

This is exceedingly ugly, although it is probably portable.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at cs.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list