just started playing with C, I have this
char str_arr[2][3] = {"gou", "ram"};
printf("%s / %s / %s", str_arr, str_arr[0], str_arr[1]);
which prints:
gouram / gouram / ram
and
char str_arr[2][4] = {"gou", "ram"};
printf("%s / %s / %s", str_arr, str_arr[0], str_arr[1]);
prints:
gou / gou / ram
I really don't understand, the 4 is the maximum size, yet makes no sense at all.
//Edit Just wanted to say that this helped me a lot, it may be a dumb question for most of you, but for me it was not, I just got into memory allocation and more advanced stuff. Thank you SO!