adplus-dvertising
frame-decoration

Question

Which among the following is correct?

a.

Two objects can point to the same memory location

b.

Two objects can never point to the same memory location

c.

Objects not allowed to point at a location already occupied

d.

Objects can’t point to any address

Answer: (a).Two objects can point to the same memory location

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which among the following is correct?

Similar Questions

Discover Related MCQs

Q. If an object is being returned by value then __________________________

Q. Why temporary object is not created in return by reference?

Q. When value of an object is assigned to another object, ___________________

Q. If an object is created and another object is assigned to it, then ________________

Q. How the argument passed to a function get initialized?

Q. If programmer doesn’t define any copy assignment operator then ____________________

Q. Declaring a copy constructor doesn’t suppresses the compiler generated copy assignment operator.

Q. In copy constructor definition, if non const values are accepted only ________

Q. How many objects can be assigned to a single address?

Q. Use of assignment operator ____________________

Q. If more than one object refer to the same address, any changes made

Q. How to make more than one object refer to the same object?

Q. We can assign ______________________

Q. Assigning reference to an object _________________

Q. Which among the following is true ?

Q. Assigning objects takes place while passing the arguments.

Q. Which language among the following doesn’t allow pointers?

Q. Which is correct syntax for declaring pointer to object?

Q. Which operator should be used to access the members of the class using object pointer?

Q. How does compiler decide the intended object to be used, if more than one object are used?