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?
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] );
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
thanks!!