69,371
社区成员
发帖
与我相关
我的任务
分享
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(int argc, char* argv[])
{
char *c3 = ( char* )malloc(sizeof(char)*3);
strcpy(c3,"abcdefg");
printf("%d %d %s\n",&c3,c3,c3);
system("pause");
return 0;
}
char *strncpy( char *strDest, const char *strSource, size_t count );