Posts

Showing posts with the label #Set

C++ Interview Preperation

Thanks to my C++ Guru - Scott Meyer Difference between Pointer and Reference Pointer Reference A pointer can be re-assigned any number of times referencecan not be re-seated after binding. It can point nowhere (NULL), reference always refer to an object. A pointer has its own memory address and size on the stack  reference shares the same memory address  You can have pointers to pointers to pointers offering extra levels of indirection references only offer one level of indirection. A pointer needs to be dereferenced with * to access the memory location it points to A pointer needs to be dereferenced with * to access the memory location it points to Difference between Array and Vector Array Vector The size of std::array is fixed at compilation time, and no extra memory is used besides the stor...