When to use %s instead of %c. For example:
#include <stdio.h>
#include <string.h>
int main(void) {
char name[31] = "My name is Arnold";
printf(" %c \n", name);
return 0;
}
If I change %c to %s I get : My name is Arnold, but if change %s to %c I get something weird like this:
▒