I know that I can declare array that ways:
int[] arr1; // one-dimensional array
int arr2[]; // one-dimensional array (declared using C-style)
int[][] arr3; // two-dimensional array
int arr4[][]; // two-dimensional array (declared using C-style)
int[] arr5[]; // - ? (possibly two-dimensional array)
int[][] arr6[]; // - ? (possibly three-dimensional array)
int[] arr7[][]; // - ? (possibly three-dimensional array)
int[] arr[]
is the c-style of declaration and is equivalent to int[][] arr
;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.