C Primer Plus (第6版)中文版 P288中程序清单11.11 scan_str.c程序,运行结果不对,麻烦各位,怎么修改才能运行正确
#include <stdio.h>
int main(void)
{
char name1[11], name2[11];
int count;
printf("Please enter 2 names.\n");
count = scanf_s("%5s %10s", name1, name2);
printf("I read the %d names %s and %s.\n", count, name1, name2);
return 0;
}