if i use char would it be "%c" in scanf (or what?)
if i use char would it be "%c" in scanf (or what?)
> "%c"
Yes. (possibly)
%d = integers
%s = string
etc
The world is waiting. I must leave you now.
Yes, like this:
char c;
printf("Enter a character: ");
scanf("%c", &c);