C++ new Operator Allocating Memory
#include <iostream> using namespace std; int main()//from w ww .ja va2 s . co m { int *ptr = new int(10); cout << *ptr << endl; return 0; }