hello
i got a bidimensional array of chars
assume it looks like this
const char array[3][17]={"mary",
"has a",
"lamb"};
1) can i safely assume the matrix is gonna end like this?
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
|---|
| m | a | r | y | /0 | | | | | | | | | | | | |
| h | a | s | 0x20 | a | /0 | | | | | | | | | | | |
| l | a | m | b | /0 | | | | | | | | | | | | |
assume i have a function like this
void function(char something[]);
2) is there any easy way to send just the second row of array to the function??
because if i write
function(array[1][0]);
this thing is gonna break
3) or should i make a new unidimensional array, copy the info from the other to this one with a for cycle and then send it?
thanks
edited by: GM VS syntaxis