摘要:
const修饰指针,一般分为如下四种情况: int b = 500; const int *a = &b; //情况1 int const *a = &b // 2 int* const a = &b // 3 const int* const a = &b// 4 如何区别呢?1)先看情况1。如果 阅读全文
摘要:
#include<stdio.h>#define SUB(x,y) x-y#define ACCESS_BEFORE(element,offset,value) *SUB(&element, offset) =value int main(){ int i; int array[10] = {1,2 阅读全文