指针做参数输入输出特性

测试源码: #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 ==
相关文章
相关标签/搜索