Pointer arithmetic and comparison

Doug Gwyn gwyn at smoke.BRL.MIL
Wed May 10 23:41:09 AEST 1989


In article <320.nlhp3 at oracle.nl> bengsig at oracle.nl (Bjorn Engsig) writes:
>The call to malloc gives me 1000 * sizeof int bytes, but is this an array?

>From the pANS:

	The pointer returned if the allocation succeeds is suitably
	aligned so that it may be assigned to a pointer to any type
	of object and then used to access such an object or an array
	of such objects in the space allocated (until the space is
	explicitly freed or reallocated).



More information about the Comp.lang.c mailing list