Horje
matrix of string in c Code Example
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;
}




C

Related
unity read text file line by line Code Example unity read text file line by line Code Example
what does double mean in java Code Example what does double mean in java Code Example
exponentials in c Code Example exponentials in c Code Example
what is implicit typecasting Code Example what is implicit typecasting Code Example
calculate max of three numbers using ternary operator in c Code Example calculate max of three numbers using ternary operator in c Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7