指針做參數輸入輸出特性

測試源碼: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> void fun(char *p /* in */) { //給p指向的內存區域拷貝 strcpy(p, "abcddsgsd"); } void fun2(char *p) { if (p ==
相關文章
相關標籤/搜索