C++ new Operator Allocating Memory

Description

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;
}



PreviousNext

Related