Match the following terms with the definitions given below T
Match the following terms with the definitions given below.
Terms given
a. Pointer type
b. Indirect addressing
c. Direct addressing
d. Reference type
e. Shallow copy
f. Deep Copy
Definitons given are the following
i. Acessing a variable using it\'s name
ii. Assigning the value of one object to another object, including the duplication of any pointed-to data.
iii. Accessing a variable using an address stored in a pointer.
iv. A simple type that can only be initialized with the address of a variable.
v. A simple type that can be assigned the address of a variable.
vi. Assigning the value of one object to another without duplicating any pointed-to data.
Solution
a. Pointer type --> iv. A simple type that can only be initialized with the address of a variable.
b. Indirect Adressing --> iii. Accessing a variable using an address stored in a pointer.
c. Direct addressing --> i. Acessing a variable using it\'s name
d. Reference type --> v. A simple type that can be assigned the address of a variable.
e. Shallow copy --> vi. Assigning the value of one object to another without duplicating any pointed-to data.
f. Deep Copy --> ii. Assigning the value of one object to another object, including the duplication of any pointed-to data.
