Subscribe Us

Responsive Advertisement

Advertisement

New and Delete Operators in C++ | Dynamic Memory Allocation | CPP Programming

 



#include<bits/stdc++.h>

using namespace std;

#define ll long long int


int main()

{

    int *p;

    p=new int;

    cout<<p<<endl;

    *p=10;

    cout<<*p<<endl;

     delete p;



    return 0;

}


Post a Comment

0 Comments