-
What is the stored in the object obj in following lines of code?
box obj;
-
- Any arbitrary pointer
- Memory address of allocated memory of object
- Garbage
- NULL
- None of these
Correct Option: D
Memory is allocated to an object using new operator. box obj; just declares a reference to object, no memory is allocated to it hence it points to NULL.