下面到底哪出问题了,我已经初始化内存了
程序代码:
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> #pragma warning(suppress : 4996) int main() { char Getstrings[90] = "helo" ; char Getstringf[] = "world." ; strncat(Getstrings,Getstringf,9); //puts(Getstrings); printf("%s\n",Getstrings); return 0; }