I want to save about 20 country names into one string and then copy them to another but it always do me some mistake, can anybody help me with it?
This is my code:
char array1[30][30], array2[30][30];
This is how i put them into first array:
fscanf(fr, "%s", array1[i]);
This all works but when i want to do:
array2[0] = array1[0];
I get error:
incompatible types when assigning to type 'char[30]' from type 'char *'
When I use:
strcpy(array2[pom2], array1[i]);
it shows no error but doesn't copy it nor print it out.