这个对么#include <string.h>#include <stdio.h>main(){char a[100] ,b[100];scanf("%s%s",a,b);printf("%d",strcat(a,b));}这样能输入两个字符么,如果不行,该怎么改才能输入两个字符串,还有怎么用strcat连接...还有这个执行不了,是什么问题
#include <string.h>#include <stdio.h>int main(){ char a[100] ,b[100]; scanf("%s%s",a,b); printf("%s",strcat(a,b)); } 追问 是因为%d的问题么 追答 是的,字符串输出格式为%s