C语言运用指针赋值后出现段错误,新手求助

2024-12-03 14:10:06
推荐回答(1个)
回答1:

printf("opposite month is %s\n", *c);
要改成
printf("opposite month is %s\n", c);