第二, 直接把a指向的區域變成即使離開str_test也不會被release, 使用static指令, 但是這還是有點暴力。 char* str_test(){ static char a[20]= "abcd";
確定! 回上一頁