previous | start | next

Pointers and Memory Allocation (Syntax 10.1 Pointer Variable Definition)

Syntax 10.2 : Pointer Variable Definition

type_name* variable_name;type_name* variable_name = expression;
Example:
Employee* boss;
Product* p = new Product;
Purpose: Define a new pointer variable, and optionally supply an initial value.


previous | start | next