pointer = new type; pointer = new type( initializer ); pointer = new type[size];
The new operator allocates a new chunk of memory to hold a variable of type type and returns a pointer to that memory. An optional initializer can be used to initialize the memory. Allocating arrays can be accomplished by providing a size parameter in brackets.