摘要:
空结构体占用的内存多大? 1 struct d 2 { 3 4 }; 5 6 int main() 7 8 { 9 10 struct d d1;11 12 struct d d2;13 14 printf("%d,%0x\n",size... 阅读全文
posted @ 2015-09-19 13:37
e-data
阅读(258)
评论(0)
推荐(0)
摘要:
c语言中const修饰的变量是只读的,不能直接作为赋值号的左值,其本质还是变量;会占用内存空间;本质上const在编译器有用,运行时无用(还是可以通过指针改变它的值)1 const int abc=1;2 3 int *p=&abc;4 5 *p=3;6 7 printf("%d\n",abc); ... 阅读全文
posted @ 2015-09-19 11:22
e-data
阅读(186)
评论(0)
推荐(0)

浙公网安备 33010602011771号