The new and delete expressions can be used to dynamically create and release individual objects, or to dynamically create and release dynamic arrays.
When you define a variable, you must specify its data type and name. When you create an object dynamically, you only need to specify its data type, rather than naming the object. The new expression returns a pointer to the newly created object through which we access the object:
int i; Named, uninitizlized int variable
int *pi = new int; Pi points to dynamically allocated, unamed, uninitizlized int
This new expression creates a reshape object in the free store and initializes it with that address.
1. Dynamically created object initializationdynamically created objects can be initialized in a way that initializes variables:
int i(1024);
int *pi = new int(1024);
string s(10, ‘9‘);
string *ps = new string(10,‘9‘);
From for notes (Wiz)
C + + new and delete expressions