性感小胖 发表于 2021-11-23 09:05:49

调试错误

#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

性感小胖 发表于 2021-11-23 09:06:20

file:///C:/Users/29002/Desktop/Snipaste_2021-11-23_09-01-58.png
页: [1]
查看完整版本: 调试错误