address of function
Guy Harris
guy at auspex.auspex.com
Tue Jun 13 14:26:45 AEST 1989
> ... and does ANSI permit the following ?
>
> int this[100], *that = &this;
No. It does permit
int this[100], (*that)[100] = &this;
since "&this" is a pointer to "this", and "this" is an array of 100
"int"s, so "&this" is a pointer to an array of 100 "int"s (not a pointer
ot a single "int" - yes, the type "pointer to array" exists, and
int (*that)[100];
declares "that" to have type "pointer to array of 100 "int"s).
More information about the Comp.lang.c
mailing list