level 1
原型void* memcpy(void* dst, const void* src, int size)
char* src="GoldenGlobalView";
char d[20];
memcpy(d,src,(strlen(src)+1));
请问这里src 是const void* 了吗 ?
int dest[2] = {0};
const char src[5] = "1234";
memcpy(dest,src,sizeof(src));
这种为什么要const 呢
2018年01月07日 03点01分
1