say if i have 2d char array like:
hello
world
my name is
david
2d array like this with 4 lines and max 128 chars in a line
char array[4][128]
how do i print them like above?
Printable View
say if i have 2d char array like:
hello
world
my name is
david
2d array like this with 4 lines and max 128 chars in a line
char array[4][128]
how do i print them like above?
Code:for ( i = 0 ; i < 4 ; i++ ) printf ( "%s\n", array[i] );
thanks!!