#include using namespace std ; int main() { int* ptr1 ; //Allocating space a single int //Old style C way ptr1 = (int*)malloc( sizeof(int) * 1 ) ; *ptr1 = 100 ; cout << *ptr1 << endl ; free( ptr1 ) ; //new style of C++ ptr1 = new int ; *ptr1 = 100 ; cout << *ptr1 << endl ; delete ptr1 ; return(0) ; }