c语言
文章平均质量分 61
cutail
这个作者很懒,什么都没留下…
展开
-
C语言定义与声明的区别
/* 摘自《c专家编程》*/ 左值在编译时确定, 右值在运行时确定。原创 2014-12-30 16:07:10 · 227 阅读 · 0 评论 -
typedef和#define的区别
/* 摘自《c专家编程》 */ /* Cutail 2014,12,30 */ 1 typedef是一种彻底的封装类型,定义之后不能向其中增加别的东西。 #define可以用其它的类型修饰符对宏进行扩展。 例如: #define test int unsigned test a; // this is OK typedef int newtype;原创 2014-12-30 15:42:40 · 172 阅读 · 0 评论