6 years ago in C++ Functions

# Which of the following statement is correct?

[A] C++ enables to define functions that take constants as an argument.
[B] We cannot change the argument of the function that that are declared as constant.
[C] Both A and B.
[D] We cannot use the constant while defining the function.

## Overall Stats

Attempted 109
Correct 23
Incorrect 21
Viewed 65

Ahmed Alanbagi - 1 month ago

Ahmed Alanbagi from Baghdad, Iraq is saying We cannot change the argument of the function that that are declared as constant. is correct answer

priyanka tile - 7 months ago

priyanka tile from Nashik, India is saying Both A and B. is correct answer

066 Pravat Kumar Mohapatra - 8 months ago

066 Pravat Kumar Mohapatra from Bhubaneswar, India is saying Both A and B. is correct answer

indhuja indhuja - 1 year ago

indhuja indhuja from Erode, India is saying Both A and B. is correct answer

Sarita Nauriya - 1 year ago

Sarita Nauriya from Hyderabad, India is saying Both A and B. is correct answer

## Related Questions

• [A] are a group of functions,with the same value
• [B] all have the same number and types of arguments
• [C] make life simpler for programmers
• [D] may fail unexpectedly due to stress

### Which of the following function prototype is perfectly acceptable?

• [A] int Function(int Tmp = Show());
• [B] float Function(int Tmp = Show(int, float));
• [C] Both A and B.
• [D] float = Show(int, float) Function(Tmp);

### Which of the following statement is incorrect?

• [A] Default arguments can be provided for pointers to functions.
• [B] A function can have all its arguments as default.
• [C] Default argument cannot be provided for pointers to functions.
• [D] A default argument cannot be redefined in later declaration.

### Which of the following function declaration is/are incorrect?

• [A] int Sum(int a, int b = 2, int c = 3);
• [B] int Sum(int a = 5, int b);
• [C] int Sum(int a = 0, int b, int c = 3);
• [D] Both B and C are incorrect.
• [E] All are correct.

### What is true about inline functions ?

• [A] It's a compulsion on the compiler to make function inline
• [B] It's a request to the compiler to make te function inline
• [C] It's the indication to the compiler that the function is recursive
• [D] It's the indication to the compiler that the function is member function