Movatterモバイル変換


[0]ホーム

URL:


Next:, Previous:, Up:Extensions to C Semantics   [Contents][Index]


6.13.2 Arithmetic onvoid- 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.


[8]ページ先頭

©2009-2026 Movatter.jp