c getchar() for multiple characters code example
Example: how to take multiple char in C
Search Results
Featured snippet from the web
scanf ( %d , &n);
for (i = 0; i < n; i++)
{
scanf ("%c", &c);
printf ("%c\n", c); //printed only after all characters are read.
printf ("%d\n", c); //printed only after all characters are read.
} //c has the value of the last character.