Next:Pointer Arguments in Variadic Functions, Previous:Prototypes and Old-Style Function Definitions, Up:Extensions to C Semantics [Contents][Index]
void- and Function-Pointers ¶In GNU C, addition and subtraction operations are supported on pointers tovoid and on pointers to functions. This is done by treating thesize of avoid or of a function as 1.
A consequence of this is thatsizeof is also allowed onvoidand on function types, and returns 1.
The option-Wpointer-arith requests a warning if these extensionsare used.