Question: ```
#include <stdio.h>

int main(){
    char testChar;

    printf("%d\n", scanf("%c", &testChar));

    return 0;
}

```

All I wanted was to print the number of characters scanned. But, when I all of my inputs have the same output , i.e. 1.

Answer: 
```
scanf()  
   only scans your first character input and returns 1.

```
You can try this to print the number of characters read from `stdin`. With the use of `scanf` in a loop. 

```
#include <stdio.h>
#include <stdlib.h>

int
main(void) {
    char testChar;
    int numchar = 0;

    printf("Enter characters, CTRL-C to end:\n");
    while (scanf("%c", &testChar) == 1) {
        numchar++;
    }

    printf("Number of characters scanned: %d\n", numchar);

    return 0;
}

```