Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

initializa 2d array c

// Different ways to initialize two-dimensional array

int c[2][3] = {{1, 3, 0}, {-1, 5, 9}};
         
int c[][3] = {{1, 3, 0}, {-1, 5, 9}};
                
int c[2][3] = {1, 3, 0, -1, 5, 9};
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #initializa #array
ADD COMMENT
Topic
Name
9+1 =