How do you declare a pointer to a two dimensional array?

Bill Poser poser at csli.Stanford.EDU
Sat Nov 3 20:13:02 AEST 1990


In article <9197 at aggie.ucdavis.edu> rogers at iris.ucdavis.edu (Brewski Rogers) writes:
>given the array:
>
>	float	spam[4][4];
>
>How do I declare a pointer to it? Is this possible?

	float (*spamp) [4][4];

declares spamp to be a pointer to a 4x4 array of floats.



More information about the Comp.lang.c mailing list