Coupon Accepted Successfully!


Features Of Pointers

  1. Pointers save memory space.
  2. Execution time with pointers is faster, because data are manipulated with the address, that is, direct access to memory location.
  3. Memory is accessed efficiently with the pointers. The pointer assigns as well as releases the memory space. Memory is dynamically allocated.
  4. Pointers are used with data structures. They are useful for representing two-dimensional and multi-dimensional arrays.
  5. We can access the elements of any type of array, irrespective of its subscript range.
  6. Pointers are used for file handling.
  7. Pointers are used to allocate memory in a dynamic manner.
  8. In C++, a pointer declared to a base class could access the object of a derived class. However, a pointer to a derived class cannot access the object of a base class. The compiler will generate an error message β€œcannot convert β€˜A* to B*,’” where A is the base class and B is the derived class.

Test Your Skills Now!
Take a Quiz now
Reviewer Name