Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C++ Programming
»
Functions
Which of the following statement is correct?
Only one parameter of a function can be a default parameter.
Minimum one parameter of a function must be a default parameter.
All the parameters of a function can be default parameters.
No parameter of a function can be default.
Correct Answer:
All the parameters of a function can be default parameters.
← Previous Question
Next Question→
More Questions from
Functions
Which of the following statement is correct?
Which of the following statement will be correct if the function has three arguments passed to it?
Which of the following statement is correct?
Which of the following statement is correct?
Which of the following statement is incorrect?
Which of the following statement is correct?
Where the default value of parameter have to be specified?
Which of the following function prototype is perfectly acceptable?
Which of the following function / types of function cannot have default parameters?
Which of the following statement is correct about the program given below? #include
static int Result; class India { public: void Change(int x = 10, int y = 20, int z = 30) { cout<< x + y + z; } void Display(int x = 40, float y = 50.00) { Result = x % x; cout<< Result; } }; class CuriousTab { int x, y; public: void Change(int x, int y = 50) { cout<< x + y; } }; class CuriousTab: public India, public CuriousTab { public: void Display(int x = 10, int xx = 100, int xxx = 1000) { Result = x + xx % x * x; cout<< Result ; } }; int main() { CuriousTab objCuriousTab; objCuriousTab.India::Display(10, 20.00); return 0; }
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments