So would like to create an 2D array of characters for testing purposes. Here is my code.
const int rows = 4;
const int columns = 6;
//char field[rows][columns];
//fill_field(rows,columns,field);
char field[rows][columns] = {
"A BCD ",
"B CDA ",
"C DAB ",
"D ABC "
};
I'm getting error saying "variable-sized object may not be initialized" and "excess elements in array initializer" for every string i have typed.