[ create a new paste ] login | about

Link: http://codepad.org/AXhH00r9    [ raw code | output | fork ]

C++, pasted on Apr 20:
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;
}


Output:
1
0xbf76ca10 0xbf76ca10


Create a new paste based on this one


Comments: