C-Single-dimension-Arrays-and-Pointers --------------------------------------- * **char a[5] = {'c', 'p', 'r', 'o', 'g'}; char \*p = a;** .. csv-table:: :file: ./single-d-char-array.csv :widths: 1,3,1,2,1,2,2 * **int a[5] = {1, 2, 3, 4, 5}; int \*p = a;** .. csv-table:: :file: ./single-d-int-array.csv :widths: 1,3,1,2,1,2,2 * **float a[5] = {1, 2.5, 3.37, 4.589, 5.56788}; float \*p = a;** .. csv-table:: :file: ./single-d-float-array.csv :widths: 1,3,1,2,1,2,2 * **double a[5] = {1.3424234123, 2.12312312, 3.234234234, 4.80908980, 5.182318231}; double \*p = a;** .. csv-table:: :file: ./single-d-double-array.csv :widths: 1,3,1,2,1,2,2 * **struct ABC { int x; int y; } a[5]; struct ABC \*p = a;** .. csv-table:: :file: ./single-d-struct-array.csv :widths: 1,3,1,2,1,2,2 * **union ABC { int x; int y; } a[5]; union ABC \*p = a;** .. csv-table:: :file: ./single-d-union-array.csv :widths: 1,3,1,2,1,2,2 C-Double-dimension-Arrays-and-Pointers --------------------------------------- * **char a[2][3] = { {'c', 'p', 'r',}, {'o', 'g', 'r'} };** .. csv-table:: :file: ./double-d-char-array.csv :widths: 1,3,1,2,1,2,2 * **int a[2][3] = { { 1, 2, 3,}, {4, 5, 6} };** .. csv-table:: :file: ./double-d-int-array.csv :widths: 1,3,1,2,1,2,2 * **float a[2][3] = { {1, 2.5, 3.37,}, {4.589, 5.56788, 4565.2323} };** .. csv-table:: :file: ./double-d-float-array.csv :widths: 1,3,1,2,1,2,2 * **double a[2][3] = { {1.3424234123, 2.12312312, 3.234234234,}, {4.80908980, 5.182318231,342,2312312} };** .. csv-table:: :file: ./double-d-double-array.csv :widths: 1,3,1,2,1,2,2 * **struct ABC { int x; int y; } a[2][3];** .. csv-table:: :file: ./double-d-struct-array.csv :widths: 1,3,1,2,1,2,2 * **union ABC { int x; int y; } a[2][3];** .. csv-table:: :file: ./double-d-union-array.csv :widths: 1,3,1,2,1,2,2 C-Three-dimension-Arrays-and-Pointers --------------------------------------- .. literalinclude:: 3d-char-array.py .. csv-table:: :file: ./three-d-char-array.csv :widths: 1,3,1,2,1,2,2 .. literalinclude:: 3d-int-array.py .. csv-table:: :file: ./three-d-int-array.csv :widths: 1,3,1,2,1,2,2 .. literalinclude:: 3d-float-array.py .. csv-table:: :file: ./three-d-float-array.csv :widths: 1,3,1,2,1,2,2 .. literalinclude:: 3d-double-array.py .. csv-table:: :file: ./three-d-double-array.csv :widths: 1,3,1,2,1,2,2 .. literalinclude:: 3d-struct-array.py .. csv-table:: :file: ./three-d-struct-array.csv :widths: 1,3,1,2,1,2,2 .. literalinclude:: 3d-union-array.py .. csv-table:: :file: ./three-d-union-array.csv :widths: 1,3,1,2,1,2,2