I have what I think is a dumb question but I don't seem to be able to find an answer:
Both compile without problem:
char** array1 = {"one","two","three"};
char* array2[] = {"one", "two", "three"};
but when I try to acces them
printf("%s", array1[0]);
causes the program to crash.
while
printf("%s", array2[0]);
don't.¿Why is it? ¿what difference is there bewteen the two ways?
Thanks in advance

New Topic/Question
Reply




MultiQuote







|