Search:

Type: Posts; User: laserlight

Search: Search took 0.21 seconds.

  1. Replies
    4
    Views
    16,206

    Here is a simple example: #include ...

    Here is a simple example:

    #include <stdio.h>

    int main(void)
    {
    char c;
    scanf("%c", &c);
    printf("You entered '%c'\n", c);
    return 0;
  2. Replies
    4
    Views
    16,206

    Yes, so a white space character is one such...

    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...
Results 1 to 2 of 2