how to scan a string in c code example
Example 1: how make a character in c scanf
scanf(" %c", &c);
Example 2: scanf in c
#include <stdio.h>
int main () {
scanf("%s", str);
printf("%s"str);
scanf("%d", int);
printf("%d"int);
return(0);
}
Example 3: how to scan in c
scanf("%d",&int);
Example 4: read string c
char name[20];
scanf("%s", name);