scanf的问题
{int sen=0;printf("write down your favourite sentences");
scanf("%s",&sen);
printf("your favourite sentences is %s",sen);
getchar();}
前面省略
{
int sen=0;
printf("write down your favourite sentences");
scanf("%s",&sen);
for(int i=0;i<20;i++)
{
printf("your favourite sentences is %i.s",sen);
}
getchar();
}
这两个代码有什么错
请各位大虾帮帮忙