Tuesday, March 17, 2015

program to demonstrate the overloading of binary memory management operator. (C plusplus or C++)

Aim: Write a program to demonstrate the overloading of binary memory management operator.
Ans:
#include<iostream.h>
#include<conio.h>
void main()
{
//Allocates using new operator eory space in meory for storing a integer datatype
clrscr();
int*a=new int;
*a=100;
cout<<"The Output is:a="<<*a;
//Memory Released using delete operator
delete a;
getch();
}



No comments:

Post a Comment