When I run this and enter my name I get a single character output.
char cName = '\0';
printf("\n\tGreetings\n");
printf("\nPlease tell us your name: ");
scanf("%c", &cName);
printf("\nWelcome %c", cName);
this is a challenge question from the Michael A. Vine "C-Programming for the absolute beginner." I believe Ive done everything right here as this same formula has worked for Integers. Do I have to change to this?
printf("\nWelcome %.10c", cName);