adplus-dvertising
frame-decoration

Question

The non-template functions can be added with default arguments to already declared functions ____________________

a.

If and only if the function is declared again in the same scope

b.

If and only if the function is declared only once in the same scope

c.

If and only if the function is declared in different scope

d.

If and only if the function is declared twice in the program

Answer: (a).If and only if the function is declared again in the same scope

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The non-template functions can be added with default arguments to already declared functions ____________________

Similar Questions

Discover Related MCQs

Q. The using declaration __________

Q. The names given to the default arguments are only looked up and ________________. And are bound during declaration.

Q. The default argument get bound during declaration ________________

Q. The virtual function overrides ____________

Q. Which among the following is true for constructors overloading?

Q. If a constructors should be capable of creating objects without argument and with arguments, which is a good alternative for this purpose?

Q. The Constructors with all the default arguments are similar as default constructors. State true or false.

Q. Which among the following is true?

Q. Which among the following can be used in place of default constructor?

Q. Can a class have more than one function with all the default arguments?

Q. Which is the correct syntax for using default arguments with the constructor?

Q. How many parameters must be passed if only the following prototype is given to a constructor?

Prototype: className(int x, int y, int z=0);

Q. If the constructors are overloaded by using the default arguments, which problem may arise?

Q. Which among the following is true ?

Q. Which constructor among the following will be called if a call is made like className(5,’a’);?

Q. Which constructor definition will produce a compile time error?

Q. If there is a constructor with all the default arguments and arguments are not passed then _________________

Q. Which is the correct statement for default constructors?

Q. Which is a good alternative instead of having one zero argument constructor and one single argument constructor with default argument?

Q. What is upcasting?