7 years ago in C++ Functions

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

Create your Digital Resume For FREE on your name's sub domain "yourname.wcard.io". Register Here!


Overall Stats

Attempted 90
Correct 9
Incorrect 24
Viewed 57

Answers

Guest
Guest
Blank OP
Blank OP - 4 years ago

Blank OP from Bacolod City, Philippines is saying passing pointers is correct answer

swathi
swathi - 4 years ago

swathi from Chennai, India is saying passing pointers is correct answer

Rohan Bhosale
Rohan Bhosale - 4 years ago

Rohan Bhosale from Pune, India is saying passing pointers is correct answer

akash patil
akash patil - 4 years ago

akash patil from India is saying declaring the formal parameters constant is correct answer

Neyah Deshmukh
Neyah Deshmukh - 4 years ago

Neyah Deshmukh from India is saying all of above is correct answer

Related Questions

A friend function

  • [A] is declared as a friend & defined elsewhere in the program
  • [B] is always an inline function
  • [C] created objects without initialization
  • [D] May be a static member function of the class

Which of the following statement is correct?

  • [A] Overloaded functions can have at most one default argument.
  • [B] An overloaded function cannot have default argument.
  • [C] All arguments of an overloaded function can be default.
  • [D] A function if overloaded more than once cannot have default argument.

The library function exit() causes an exit from ?

  • [A] The loop in which it occurs
  • [B] The block in which it occurs
  • [C] The function in which it occurs
  • [D] The program in which it occurs

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

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.