随笔分类 - 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
阅读全文
摘要:#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),没有#,所以需要进行宏展开 ...
阅读全文
摘要:http://zhidao.baidu.com/link?url=87OGcxtDa6fQoeKmk1KylLu4eIBLJSh7CA3n5NWY-Ipm9TxZViFnIui307duCXWhaM0O6lrx2G8z-1HLXVpz0q#include main(){ printf("%f\n"...
阅读全文
摘要:http://tieba.baidu.com/p/1253046423指针的解释(搞笑的)问题:学到指针了,我知道int a=10;int* p1=&a;int** p2=&p1;p1里存的是A的地址,*p1=10,但是二级指针就不懂了,能具体说一下,**p2,*p2,p2,都代表什么吗a是一部在线...
阅读全文