随笔分类 -  C语言

摘要:C pointer to array/array of pointers disambiguation I don't know if it has an official name, but I call it the Right-Left Thingy(TM). Start at the var 阅读全文
posted @ 2020-04-24 10:28 ChuckLu 阅读(235) 评论(0) 推荐(0) 编辑
摘要:#include#define f(a,b) a##b#define g(a) #a#define h(a) g(a)int main(){ printf("%s\n",h(f(1,2))); 宏h(a) 是g(a),没有#,所以需要进行宏展开 ... 阅读全文
posted @ 2015-05-08 13:25 ChuckLu 阅读(4363) 评论(0) 推荐(0) 编辑
摘要:http://zhidao.baidu.com/link?url=87OGcxtDa6fQoeKmk1KylLu4eIBLJSh7CA3n5NWY-Ipm9TxZViFnIui307duCXWhaM0O6lrx2G8z-1HLXVpz0q#include main(){ printf("%f\n"... 阅读全文
posted @ 2014-10-13 10:00 ChuckLu 阅读(2066) 评论(0) 推荐(0) 编辑
摘要:http://tieba.baidu.com/p/1253046423指针的解释(搞笑的)问题:学到指针了,我知道int a=10;int* p1=&a;int** p2=&p1;p1里存的是A的地址,*p1=10,但是二级指针就不懂了,能具体说一下,**p2,*p2,p2,都代表什么吗a是一部在线... 阅读全文
posted @ 2014-02-19 13:04 ChuckLu 阅读(263) 评论(0) 推荐(0) 编辑

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