每天学一点C语言
何大白
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
typedef const external static automatic初涉
typedeftypedef char *ptr_to_char; ptr_to_char a;上述代码把 char *看作一个整体,认为 ptr_to_char 是一个char *\的类型constint const a; const int a;上述两句话的作用是一样的但是下面的int *pi//一个普通指针 int原创 2015-10-09 21:31:50 · 566 阅读 · 0 评论 -
指针的指针
int **c#include <stdio.h> //the pointer of pointer; int main() { int a = 12; int *b = &a; int *(*c) = &b; printf("%x, %x, %d\n", c, *c, **c); return 0; }上述表达式中有 表达式 相当的表达式 a原创 2015-10-12 12:16:00 · 314 阅读 · 0 评论
分享