摘要:
通过指针引用数组,通过数组引用指针,你搞明白了么?通过下面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 阅读全文