adplus-dvertising
frame-decoration

Question

If an object is declared inside the function then ____________________ outside the function

a.

It can be returned by reference

b.

It can’t be returned by reference

c.

It can be returned by address

d.

It can’t be returned at all

Answer: (b).It can’t be returned by reference

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If an object is declared inside the function then ____________________ outside the function

Similar Questions

Discover Related MCQs

Q. How many independent objects can be returned at same time from a function?

Q. Which error will be produced if a local object is returned by reference outside a function?

Q. If object is passed by reference ____________________

Q. Can we return an array of objects?

Q. If an object is passed by reference to a function then it must be returned by reference.

Q. Which among the following is correct?

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 _________________