【发布时间】:2017-03-25 05:28:02
【问题描述】:
当我运行这段代码时,我总是在我的 IDE 中发现问题。你能给出这个解决方案吗?
#include<stdio.h> #include<string.h> int main(void) { char cname[4]="mahe"; strcat(cname, "Karim"); printf("%s",cname); getch(); return 0; }
【问题讨论】:
-
你发现了什么问题?错误信息是什么?请花一些时间访问help center并阅读How to Ask、How to create a Minimal, Complete, and Verifiable example,以便您了解这里接受哪些类型的问题、如何编写问题以及如何有效地使用本网站