调试错误
#include <stdio.h>main()
{
char str;
printf("sanf string:");
scanf("%s",str);
printf("pf string:");
printf("%s\n",str);
printf("%s\n",&str);
}
file:///C:/Users/29002/Desktop/Snipaste_2021-11-23_09-01-58.png file:///C:/Users/29002/Desktop/Snipaste_2021-11-23_09-01-58.png
页:
[1]