Here is a simple example:
#include <stdio.h>
int main(void)
{
char c;
scanf("%c", &c);
printf("You entered '%c'\n", c);
return 0;
Type: Posts; User: laserlight
Here is a simple example:
#include <stdio.h>
int main(void)
{
char c;
scanf("%c", &c);
printf("You entered '%c'\n", c);
return 0;
Yes, so a white space character is one such character.
The idea is that for most conversion specifiers, scanf will skip leading whitespace, but %c will not skip them, but rather match the...