C language array Natori address. . .

int main()
{
int a[5] = { 1, 2, 3, 4, 5 };
printf("%08X ,%08X ,%08X ,%08X", a, &a, a + 1, &a + 1);
return 0;
}

And print out a & a address is exactly the same

but,

a + 1 is added an int length

& A + 1 is the added length of the entire array

Guess you like

Origin www.cnblogs.com/bCPTdtPtp/p/11967709.html