scanning name in C
how does one scan name of a user and get output?
3 Answers
4 years ago by gabriel otieno
Here is the sample program which shows how to scan name of a user
https://onecompiler.com/c/3wusn57jh
4 years ago by Karthik Divi
use gets()
char c[10]
gets(ch) it is including space in a string
for word
scanf("%s",ch);
4 years ago by Dr. M Jayaram
#include<stdio.h>
int main()
{
char a;
scanf("%c",&a);
printf("%c",a);
return 0;
}
//this code is written with C.
2 years ago by Somnath Gorai