2d array of strings in c
language[0] => "Java";
language[1] => "Python";
language[2] => "C++";
language[3] => "HTML";
language[4] => "SQL";
2d array of strings in c
language[0] => "Java";
language[1] => "Python";
language[2] => "C++";
language[3] => "HTML";
language[4] => "SQL";
2d array of strings in c
// it is valid
char language[ ][10] = {"Java", "Python", "C++", "HTML", "SQL"};
matrix of string in c
#define ROW 3
#define COL 3
int main(int argc, char *argv[])
{
int i, j;
char *matrix[ROW][COL] = {
{"aa", "bb", "cc"},
{"dd", "ee", "ff"},
{"gg", "hh", "ii"},
};
for(i = 0; i < ROW; i++){
for(j = 0; j < COL; j++){
printf("matrix[%d][%d] is %s\n", i, j, matrix[i][j]);
}
}
return 0;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us