[ create a new paste ] login | about

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

C++, pasted on Jun 8:
1
2
3
4
5
6
7
8
9
10
#include <iostream>

int main()
{
  int * a = new int;
  *a = 123;
  std::cout << a << std::endl;
  std::cout << *a << std::endl;
  return 0;
}


Output:
1
2
0x8050438
123


Create a new paste based on this one


Comments: