5 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.
Loading...
Next Question

Overall Stats

Attempted 105
Correct 21
Incorrect 20
Viewed 64

Answers

Guest
Guest
indhuja indhuja
indhuja indhuja - 4 months ago

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

Sarita Nauriya
Sarita Nauriya - 5 months ago

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

Arjunasor Syiem
Arjunasor Syiem - 7 months ago

Arjunasor Syiem from Shillong, India is saying We cannot change the argument of the function that that are declared as constant. is correct answer

pavithra p
pavithra p - 8 months ago

pavithra p from Bengaluru, India is saying We cannot use the constant while defining the function. is correct answer

sahil
sahil - 1 year ago

sahil from Valsad, India is saying Both A and B. is correct answer

Related Questions

One of the disadvantage of pass by reference is that the called function may inadvertently corrupt the called data.This is avoided by ?

  • [A] passing pointers
  • [B] declaring the formal parameters constant
  • [C] declaring the actual parameters constant
  • [D] all of above

Which of the following function / type of function cannot be overloaded?

  • [A] Member function
  • [B] Static function
  • [C] Virtual function
  • [D] Both B and C

Which of the following parameter passing mechanism is/are supported by C++ but not in C?

  • [A] Pass by value
  • [B] Pass by reference
  • [C] Pass by value result
  • [D] All of the above

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

When an argument is passed by reference

  • [A] a variable is created in function to hold the argument value
  • [B] the function cannot access the argument value
  • [C] a temporary variable is created in the calling program to hold arguments value
  • [D] None of these