Syntax

Meaning

Example.

 

 

 

type variable_name

Variable declaration

int my_variable;

 

 

 

type* variable_ptr;

Pointer declaration.

int* my_variable_ptr;

 

 

 

*variable_ptr

Indirection operation (the same as target's value).

cout << *my_variable_ptr;

 

 

 

&variable

Address of a variable.

my_variable_ptr = &my_variable;

 

 

 

type&

Reference parameter or argument.

Get_Balance(int& my_variable) ;

1