![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言基础知识
a04081122
这个作者很懒,什么都没留下…
展开
-
指针使用的疑惑
test1.c #include #include #include #include char *b = "abcdefg"; void change_char(char *str) { str = b; printf("str[%s] \n",str); } int main(int argc, char **argv) { cha原创 2016-07-22 17:27:36 · 266 阅读 · 0 评论 -
指针与数组
1.指针与一维数组等价 char *a ,char b[10]; 则 a = b; 之后,也可以直接使用a[0],a[1],a[2]进行操作。 2.二重指针与指针数组等价 char **a, char *b[10]; 则 a=b; *a == a[0] == b[0]; *(a+1) == a[1] == b[1]; 3.指原创 2016-07-22 17:41:30 · 294 阅读 · 0 评论