C++ Pointers

Concept of Pointers: Every storage location of memory has an associated address. The address is a number that grows sequentially. For every program placed in memory, each variable or function in the program has an associated address. The address of operator: The address of operator or Reference operator is denoted by the notation &. When the user wants to get the address of a variable, then the reference operator & can be used. The operator & is used to find the address associated with a variable. The syntax of the… Read More

C++ Static Functions

Topics Syntax How to access Example Keep in Mind Static member functions have a class scope and they do not have access to the ‘this’ pointer of the class. When a member is declared as static, a static member of class, it has only one data for the entire class even though there are many objects created for the class. The main usage of static function is when the programmer wants to have a function which is accessible even when the class is not instantiated. Defining Static Function Static function… Read More