04 2014 档案

摘要:1 int a = 5; 2 extern int b; 3 static int c; 4 5 int d( int e ) 6 { 7 int f = 15; 8 register int b; 9 ... 阅读全文
posted @ 2014-04-30 22:25 blankqdb 阅读(471) 评论(0) 推荐(0) 编辑
摘要:1 //http://blog.chinaunix.net/uid-24549279-id-71355.html 2 /* 3 ============================================================================ 4 Name... 阅读全文
posted @ 2014-04-29 23:08 blankqdb 阅读(656) 评论(0) 推荐(0) 编辑
摘要:1 //http://blog.chinaunix.net/uid-24549279-id-71355.html 2 /* 3 ============================================================================ 4 Name... 阅读全文
posted @ 2014-04-29 22:37 blankqdb 阅读(255) 评论(0) 推荐(0) 编辑
摘要:当用于不同的上下文环境时,static关键字具有不同的意思。 当它用于函数定义时,或用于代码块之外的变量声明时,static关键字用于修改标识符的链接属性,从external改为internal,但标识符的存储类型和作用域不受影响。用这种方式声明的函数或变量只能在声明它们的源文件中访问。 当... 阅读全文
posted @ 2014-04-29 21:41 blankqdb 阅读(226) 评论(0) 推荐(0) 编辑
摘要:变量的破碎类型是指存储变量值的内存类型。变量的存储类型决定变量何时创建、何时销毁以及它的值将保持多久。 有三个地方可以用于存在变量:普通内存、运行时堆栈、硬件寄存器。 变量的缺省存储类型取决于它的声明位置。凡是在任何代码块之外声明的变量问题存储于静态内存中,也就是不属于堆栈的内存,这类变量称... 阅读全文
posted @ 2014-04-29 21:29 blankqdb 阅读(223) 评论(0) 推荐(0) 编辑
摘要:链接属性决定如何处理在不同文件中出现的标识符。标识符的作用域也它的链接属性有关,但这两个属性并不相同。 没有链接属性的标识符(none)总是被当作单独的个体,也就是说该标识符的多个声明被当作独立不同的实体。 internal链接属性的标识符在同一个源文件内的所有声明中都指同一个实体,但位于不... 阅读全文
posted @ 2014-04-28 20:30 blankqdb 阅读(680) 评论(0) 推荐(0) 编辑
摘要:1 //http://blog.chinaunix.net/uid-24549279-id-71355.html 2 /* 3 ============================================================================ 4 Name... 阅读全文
posted @ 2014-04-27 12:14 blankqdb 阅读(297) 评论(0) 推荐(0) 编辑
摘要:1 //http://blog.chinaunix.net/uid-24549279-id-71355.html 2 /* 3 ============================================================================ 4 Name... 阅读全文
posted @ 2014-04-27 11:59 blankqdb 阅读(276) 评论(0) 推荐(0) 编辑
摘要:1 //http://blog.chinaunix.net/uid-24549279-id-71355.html 2 /* 3 ============================================================================ 4 Name... 阅读全文
posted @ 2014-04-27 11:50 blankqdb 阅读(479) 评论(0) 推荐(0) 编辑
摘要:1 //http://blog.chinaunix.net/uid-24549279-id-71355.html 2 /* 3 ============================================================================ 4 Name... 阅读全文
posted @ 2014-04-27 11:36 blankqdb 阅读(230) 评论(0) 推荐(0) 编辑
摘要:1 //http://blog.chinaunix.net/uid-24549279-id-71355.html 2 /* 3 ============================================================================ 4 Name... 阅读全文
posted @ 2014-04-25 22:09 blankqdb 阅读(561) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 ============================================================================ 3 Name : test.c 4 Author : blank 5 Version : ... 阅读全文
posted @ 2014-04-25 21:51 blankqdb 阅读(259) 评论(0) 推荐(0) 编辑
摘要:/* ============================================================================ Name : test.c Author : blank Version : Copyright : Y... 阅读全文
posted @ 2014-04-25 00:07 blankqdb 阅读(319) 评论(0) 推荐(0) 编辑
摘要:/* ============================================================================ Name : test.c Author : blank Version : Copyright : Y... 阅读全文
posted @ 2014-04-24 23:02 blankqdb 阅读(1114) 评论(0) 推荐(0) 编辑
摘要:/* ============================================================================ Name : test.c Author : blank Version : Copyright : Y... 阅读全文
posted @ 2014-04-24 22:38 blankqdb 阅读(258) 评论(0) 推荐(0) 编辑