pointers to arrays
Leslie Mikesell
les at chinet.chi.il.us
Thu Feb 23 15:38:50 AEST 1989
In article <1044 at auspex.UUCP> guy at auspex.UUCP (Guy Harris) writes:
>>It looks to me as though given:
>> int flimflam[20];
>>that &flimflam has type address of int.
>Not in dpANS C; it has type "pointer to array of 20 'int's". It has
>that type in C as implemented by most PCC-based implementations.
Does this imply that pointer math and subscripting of the returned
value is scaled by the size of the array? (i.e. would &flimflam + 1
evaluate to the same address as flimflam + 20?)
Les Mikesell
More information about the Comp.lang.c
mailing list