Array names as pointers

ma6nrr at bath63.UUCP ma6nrr at bath63.UUCP
Thu Feb 12 05:43:51 AEST 1987


#undef LINE_EATER

A point I am not clear on:
I know that for a single-dimension array e.g.
int a[20]; then a means &a[0].Is this generally
true for multidimensional arrays e.g. will

	int b[5][6];
	write ( fd , (char *) b , 30 * sizeof( int ) );

write out only the whole of array b to file no. fd ?
Thanks in advance,Neil.

/*    */    main()    { }    /*/    } {    )(    niam    /*    */
/***************************************************************/
/* Send all flames to:                                         */
/***************************************************************/
/* N.Rashbrook         UUCP:seismo!mcvax!ukc!bath63!ma6nrr     */
/* Undergraduate      JANET:ma6nrr at UK.AC.BATH.UX63             */
/* University of Bath  ARPA:ma6nrr%ux63.bath.ac.uk at ucl-cs.arpa */
/***************************************************************/



More information about the Comp.lang.c mailing list