Movatterモバイル変換


[0]ホーム

URL:


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


6.13.4 Pointers to Arrays with Qualifiers Work as Expected

In GNU C, pointers to arrays with qualifiers work similar to pointersto other qualified types. For example, a value of typeint (*)[5]can be used to initialize a variable of typeconst int (*)[5].These types are incompatible in ISO C because theconst qualifieris formally attached to the element type of the array and not thearray itself.

extern voidtranspose (int N, int M, double out[M][N], const double in[N][M]);double x[3][2];double y[2][3];transpose(3, 2, y, x);

[8]ページ先頭

©2009-2026 Movatter.jp