how to declare multidimensional array in c

Solutions on MaxInterview for how to declare multidimensional array in c by the best coders in the world

showing results for - "how to declare multidimensional array in c"
Davide
01 Apr 2019
1int a[3][4] = {  
2   {0, 1, 2, 3} ,   /*  initializers for row indexed by 0 */
3   {4, 5, 6, 7} ,   /*  initializers for row indexed by 1 */
4   {8, 9, 10, 11}   /*  initializers for row indexed by 2 */
5};