Pointer Stew

kevin.laux rkl at cbnewsh.ATT.COM
Tue May 9 02:59:52 AEST 1989


In article <386 at spec0.UUCP>, blm at spec0.UUCP (Bharat Lal Madhyani) writes:

	[stuff deleted]

> 	   				And as we all know that two
> 	dimensional array are implemented through pointers, i.e
> 	char a[10][20] means :
> 
> 		a is an array of 10 pointers, and each element of
> 		array a is an array of  20 characters.
> 
> */

	[stuff deleted]

	No!  Array a is *NOT* an array of 10 pointers and does *NOT* mean it
either.  Array a is a two-dimensional array of chars, period.

	When you write:

	char *path[10];

	*That* is an array of 10 pointers to chars.

--rkl



More information about the Comp.lang.c mailing list