Ok, so I have an assignment that gives me this constant:
const char *suits[] = {"Hearts", "Diamonds", "Clubs", "Spades"};
basically it is just a table pointer that points to 4 words! Simple right?
then what i have to do is to import each word to another table!
So i create a new table:
char table[30];
in the main structure, and i want somehow to import inside the word "Diamonds"! On the pointer's table this word is on second place. So it is suits[1].
Well when try to print the second word using this command:
printf("%s", *suits[1]);
i get error. but using that command
printf("%c", *suits[1]);
i only get "D", which is only the first letter. So do you have any ideas on how i would be able to print the whole word "Diamonds", and how can i copy it to the table that i create in the main form?
(i just need to copy the word from suits[1] to new table and then be able to print the table)
THANK YOU VERY MUCH!!!