void main()
{
char c;
clrscr();
printf("Enter your name:\n");
scanf("%s", c);
printf("You entered your name as : \n")
printf("%s",c);
getch();
}
output//
Enter Your name:
sandeep
You entered your name as :
sandeep
当它不是一个字符数组时,我没有得到这个单个字符变量'c'如何存储一个字符串?