08 2014 档案

摘要:#include #include int main(){ union test { int a; int b; }t1; t1.b=2; printf("t1 value is %p\n",t1); printf("a value ... 阅读全文
posted @ 2014-08-25 20:00 taek 阅读(578) 评论(0) 推荐(0) 编辑
摘要:0x00030 ,0x00031 ,0x00032 ,0x00033 是四个字节,用来存放0x00010(字母a的地址) 阅读全文
posted @ 2014-08-25 19:01 taek 阅读(395) 评论(0) 推荐(0) 编辑
摘要:转自http://www.cppblog.com/cc/archive/2006/08/01/10765.htmlhttp://www.cppblog.com/snailcong/archive/2009/03/16/76705.html首先由一个程序引入话题:1//环境:vc6+windowssp... 阅读全文
posted @ 2014-08-15 16:16 taek 阅读(131) 评论(0) 推荐(0) 编辑
摘要:最近在研究php自定义函数的实现,其中php自定义函数在传递参数时,是放到人为的一个栈中,这个跟写C程序时,参数入栈的这个栈还不一样,其中延伸到了 malloc 以及free 有人说在free(p)后,要将p设置为NULL, 在查找了一翻资料后,大体上弄明白了是怎么回事 参考资料: http://b 阅读全文
posted @ 2014-08-03 16:11 taek 阅读(398) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示