[置顶] C语言----------指针

摘要: 地址注: 把指针比喻成门牌号,信封邮寄地址,现在我看到指针就想起门牌号,信封地址#include "stdio.h"int main(){ int a = 10; int *p = &a; printf("%p\n", p); return 0; }// output0x7... 阅读全文

posted @ 2015-08-27 10:44 dj123456 阅读(555) 评论(0) 推荐(0) 编辑

2015年8月27日

typedef , static和 extern

摘要: typedef1.作用:给已经存在的类型起一个新的名称2.使用场合:1> 基本数据类型2> 指针3> 结构体4> 枚举5> 指向函数的指针#include typedef int MyInt;typedef MyInt MyInt2;// 给指针类型char *起一个新的类型名称Stringtype... 阅读全文

posted @ 2015-08-27 11:08 dj123456 阅读(747) 评论(0) 推荐(0) 编辑

导航