你真懂動態分配內存嗎?不是全部人能都作對這四道題......

    廢話少說,上程序linux 一、函數 void GetMemory(char *p) { p = (char *)malloc(100); } void Test(void) { char *str = NULL; GetMemory(str); strcpy(str, "hello world"); printf(str); } 二、spa char *GetMemory(
相關文章
相關標籤/搜索