C/C++指针
2014-11-04
阅读 1 分钟
2.6k除Heap外,其余三块都是在应用程序启动时就分配内存。 传引用节省很大内存。 数组与指针: 1. char c1[20]="test";√//('\0'自动补齐implicit) char c2; c2=c1;√ c1=c2;× c2++;√ c1++;× 2.数组作为引用传递给函数参数; 3.char *C="hello";√ //string gets stored at compile time constant C[0]='A';× //不能修改 但是...