Posted On: Feb 22, 2018
A pointer can be reassigned n number of times while a reference cannot be re-assigned after binding. Pointers can point nowhere or to a NULL value, whereas a reference always refers to an object. The users cannot take the address of a reference like they can with pointers.
There’s no “reference arithmetic” but the user can take the address of an object pointed by a reference and perform pointer arithmetic on it.
Never Miss an Articles from us.
Object-oriented programming (OOP) is a type of computer programming, also more commonly known as software design, in wh..
The statement #include is used in C++ to include the source file or import the header files containing definitions of f..
The ‘this’ pointer is passed as a hidden argument to all the non-static member method calls and is available as a l..