为何数组名的地址和给数组名求地址得到的地址结果是一样的啊
// basic_string_get_allocator.cpp
// compile with: /EHsc
#include <string>
#include <iostream>
#include "stdio.h"
int main( )
{
int a[2] = {0};
printf("%p\n",a);//代表的是数组首元素的地址
printf("%p\n",&a);
}
003AF730
003AF730
请按任意键继续. . .