Answers for "how to take multiple char in C"

0

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.
Posted by: Guest on August-26-2020

Browse Popular Code Answers by Language