正在加载图片...
The c Programming language Chapter 7 Arrays 87.2 Two-dimensional Arrays ☆ Declaration number=row*col type array name [expr]expr 今 Storms Elem int a[3 14] float b[2][5] subscript or co ssed in Int a3, 4 storage oruc int a[3 ][2 a0J[0 aol a[O][0]a0][1] 234 a a[2]01 a[2][0]a[2][1 a[2][The C Programming Language Chapter 7 Arrays §7.2 Two-dimensional Arrays ❖ Declaration: type array name[expr][expr] ❖ Storage order of elements: ⚫Elements are stored by rows,so the rightmost subscript, or column, varies fastest as elements are accessed in storage order. as int a[3][4]; float b[2][5]; int a[3,4]; () row column number=row*col int a[3][2] a[0][1] a[1][0] a[1][1] a[2][0] a[2][1] 0 1 4 5 2 3 a[0][0] a[0][0] a[0][1] a[1][0] a[1][1] a[2][0] a[2][1]
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有