adplus-dvertising
frame-decoration

Question

Which of the following statement is incorrect?

a.

The default value for an argument can be a global constant.

b.

The default arguments are given in the function prototype.

c.

Compiler uses the prototype information to build a call, not the function definition.

d.

The default arguments are given in the function prototype and should be repeated in the function definition.

Answer: (d).The default arguments are given in the function prototype and should be repeated in the function definition.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following statement is incorrect?

Similar Questions

Discover Related MCQs

Q. Where the default value of parameter have to be specified?

Q. Which of the following statement is correct?

Q. Which of the following statement is correct?

Q. Which of the following statement is incorrect?

Q. Which of the following statement is correct?

Q. Which of the following function / types of function cannot have default parameters?

Q. Which of the following statement is correct?

Q. The variable that are listed in the function's calls are called

Q. A programmer can create custom header files that must be end with

Q. Unary scope resolution operator is denoted by

Q. To make large programs more manageable programmers modularize them into subprograms that are called

Q. The maths function acos (x) stands for

Q. Which from the following is not a storage class specifier in C++?

Q. Which of the following function returns no value?

Q. A variable that is declared inside a block is called

Q. For accessing a global variable when a local variable of the same name is in scope, C++ provides a

Q. The () parenthesis in a function call

Q. Modules in C++ are called

Q. Which from the following is used for invoking a function?

Q. There are how many ways to invoke a function in C++?