#include<stdio.h>int main() {
char s1[6]; scanf_s("%s\n", s1); printf("%s,%c\n", s1, s1[2]); //array,r return 0;
}
收起
改为scanf_s("%s", s1,6);
报告相同问题?