Hello
I have been using c for dummies along with bloodshed software for a day or so and I tried putting this snippet of code in from the book and I got a syntax error:
#include <stdio.h>
int main()
{
char name[20];
char color[20];
printf(“What is your name?”);
scanf(“%s”,name);
printf(“What is your favorite color?”);
scanf(“%s”,color);
printf(“%s’s favorite color is %s\n”,name,color);
return(0);
}
I figured this book was up to date (2004) and up to this point the only error I got was from using () around 0 in return. But for some reason this won't compile. And I copied and pasted it too. So if there is any way I can fix this, please reply.
Thanks
vivosmith