Next:Const and Volatile Functions, Previous:Pointer Arguments in Variadic Functions, Up:Extensions to C Semantics [Contents][Index]
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);