Home »
MCQs »
C++ MCQs
Which of the following is an incorrect call to the function void sample(int a, int b=0, int c=0)?
75. Which of the following is an incorrect call to the function void sample(int a, int b=0, int c=0)?
- sample(10,20,30);
- sample();
- sample(50);
- sample(30,40);
Answer: B) sample();
Explanation:
Here we need to pass at least one argument to the function.