Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

why do we use pointers in c++

//why do we use pointers:
1)pass values by refrence to a function
2)return multiple values from a function
3)use pointers in combinational with arrays
4)dynamic memory allocation
5)use pointers in a base class in order to access object of derived class (Smart pointers)
Source by www3.ntu.edu.sg #
 
PREVIOUS NEXT
Tagged: #pointers
ADD COMMENT
Topic
Name
9+4 =