Question
a.
void add(int x, int y=0)
b.
void add(int=0)
c.
void add(char c)
d.
void add(char c)
Posted under Object Oriented Programming
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 function can be called without arguments?
Similar Questions
Discover Related MCQs
Q. If a function have all the default arguments but still some values are passed to the function then ______________
View solution
Q. What function will be called with the independent syntax “test(5,6,7);”?
View solution
Q. Which among the following is wrong call to the function void test(int x, int y=0, int z=0)?
View solution
Q. Default arguments are _________________________
View solution
Q. Which among the following is false for default arguments?
View solution
Q. The non-template functions can be added with default arguments to already declared functions ____________________
View solution
Q. The using declaration __________
View solution
Q. The names given to the default arguments are only looked up and ________________. And are bound during declaration.
View solution
Q. The default argument get bound during declaration ________________
View solution
Q. The virtual function overrides ____________
View solution
Q. Which among the following is true for constructors overloading?
View solution
Q. If a constructors should be capable of creating objects without argument and with arguments, which is a good alternative for this purpose?
View solution
Q. The Constructors with all the default arguments are similar as default constructors. State true or false.
View solution
Q. Which among the following is true?
View solution
Q. Which among the following can be used in place of default constructor?
View solution
Q. Can a class have more than one function with all the default arguments?
View solution
Q. Which is the correct syntax for using default arguments with the constructor?
View solution
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);
View solution
Q. If the constructors are overloaded by using the default arguments, which problem may arise?
View solution
Q. Which among the following is true ?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!