strcat赋值为空的情况

2025-03-06 22:16:39
推荐回答(2个)
回答1:

可以为空,但是strcat的第二个parameter是个字符串类型的,所以应该使用“”双引号。

回答2:

strcat(full,'');
应该改为
strcat(full,"");