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)?

  1. sample(10,20,30);
  2. sample();
  3. sample(50);
  4. sample(30,40);

Answer: B) sample();

Explanation:

Here we need to pass at least one argument to the function.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.