Hi I am learning strings in c. And I stumbled on this errors on Xcode. What I am doing wrong?
#include <stdio.h>
#include <string.h>
int main(int argc, const char * argv[])
{
char *colors[3][10] = {'\0'};
printf("\nEnter 3 colors separated by spaces: ");
scanf("%s %s %s", colors[0], colors[1], colors[2]);
//error: format specifies type 'char*' but the argument has 'char**'
printf("\nYou entered: ");
printf("%s %s %s\n", colors[0], colors[1], colors[2]);
return 0;
}