Monday, August 3, 2015

C++ References vs Pointers

1. Reference must be initialized when it is created. Pointers can be initialized at any time.

2. Reference cannot be null it is to be initialized with other variable.

3. Reference is initialized to one object, it cannot be changed to refer to other object where as
pointer can point to any other object at any time


Type Casting in C++

static_cast