PDA

View Full Version : c problem with double matrix table


alaios
08-21-2005, 07:49 PM
available_sections[0][0]="section1";
Why this assignment dont work??
defined as
char available_sections[10][20];

shmoove
08-22-2005, 11:26 AM
You're a assigning a C style string (in other words a char array) to a variable of type char.
Declaring the array as an array of char pointers should do the trick:

char* available_sections[10][20];


shmoove