Advantages of using Pointer

Questions by Sarfaraz S

Showing Answers 1 - 6 of 6 Answers

u want advantage
1)can return more then 1 value from a function
2)no need to pass the entire object to a function..can pass just the address
3)if we want our object to be modify by some function then we have only option to pass its address or reference
4)can implement run time polymorphism(virtual...function)
5)in  writing driver .....pointer is needed....also can do programming at low level
6)can implement garbage collection thing like reference counting
7)if want to shere some object omng classes we can have the pointer of that object
in each intyerested classes

......actually we can't move without pointer .....its power of c & c++

we can find lot more uses... 
 

jaihind007

  • Jul 15th, 2008
 

Advantages:

* Increasing the programming performance , Using pointers we can able to access the variables faster
* Dynamic memory management
* Data structure handling (Linkedlist, Stack ,Queue, Data dictionary,....)
* File management using FILE pointer

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions