10 2023 档案
摘要:代码:如下 1 #include <malloc.h> 2 #include <stdio.h> 3 4 void getMemory(int len, char* p) 5 { 6 p = (char*)malloc(len); 7 } 8 int main() 9 { 10 char src[]
阅读全文
摘要:题目:请找出下面代码的所有错误,说明:一下代码是把一个字符串倒序,如"abcd"倒序为"dcba",以下是引用的代码 1 #include "string.h" 2 main() 3 { 4 char* pSrc = "hello,world"; 5 char* pDest = NULL; 6 in
阅读全文