摘要: 通过指针引用数组,通过数组引用指针,你搞明白了么?通过下面3种情形来了解一下数组和指针Case 1.unsigned char arry[10];unsigned char *ptr;unsigned char a, b, c;ptr = arry;a = ptr[0];b = ptr[1];c = ptr[2];Case 2.unsigned char arry[10];unsigned char *ptr;unsigned char a, b, c;ptr = arry;a = *ptr;b = *(ptr+1);c = *(ptr+2);Case 3.unsigned char *ptr 阅读全文
posted @ 2014-04-13 11:47 Mr.Bike 阅读(1233) 评论(0) 推荐(0) 编辑