Professional Documents
Culture Documents
W E E K - 4 ( PA R T 2 )
• Definition:
Datatype * variable_name = & name_variable_pointed_to
Defines variable a pointer Returns an address
• Uses:
• Dynamically allocated memory to a variable
Pointers structures
Types of
Variables
Objects Arrays
Types of
Copies of
Object
Shallow
Deep Copy
Copy
Constructor
Constructor
Source Copied
Object Object
Memory
########## Shallow Copy
Source Copied
Object Object
Memory
########## ########## Deep Copy