From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/gcc~13/pointers-to-arrays.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 devdocs/gcc~13/pointers-to-arrays.html (limited to 'devdocs/gcc~13/pointers-to-arrays.html') diff --git a/devdocs/gcc~13/pointers-to-arrays.html b/devdocs/gcc~13/pointers-to-arrays.html new file mode 100644 index 00000000..8a1fac9d --- /dev/null +++ b/devdocs/gcc~13/pointers-to-arrays.html @@ -0,0 +1,12 @@ +

6.26 Pointers to Arrays with Qualifiers Work as Expected

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

extern void
+transpose (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);
+
+

+ © Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
+ https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Pointers-to-Arrays.html +

+
-- cgit v1.2.3