1 2 3 4 5 6 7 8 9 10
#include <iostream> #include <typeinfo> int main() { int array[] = { 1, 2, 3 }; int* p = reinterpret_cast<int*>(&array); std::cout << &array[0] << " " << p << std::endl; }
1
0xbf76ca10 0xbf76ca10