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

Overall Stats

Attempted 146
Correct 17
Incorrect 29
Viewed 100

Answers

Guest
Guest
Shashank Shashu
Shashank Shashu - 1 month ago

Shashank Shashu is saying declaring the formal parameters constant is correct answer

YOYO Chunu
YOYO Chunu - 2 months ago

YOYO Chunu is saying declaring the formal parameters constant is correct answer

RISHIKESH KUMAR
RISHIKESH KUMAR - 2 months ago

RISHIKESH KUMAR is saying declaring the actual parameters constant is correct answer

Prakhar Tiwari
Prakhar Tiwari - 2 months ago

Prakhar Tiwari is saying declaring the formal parameters constant is correct answer

Chandan Kumar G
Chandan Kumar G - 2 months ago

Chandan Kumar G is saying all of above is correct answer

Related Questions

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 function / type of function cannot be overloaded?

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

Static Member function

  • [A] can access any other member function & member variables
  • [B] can access only static member variables & member functions
  • [C] can be only called through object of the class
  • [D] Returns only static data

Using turbo C++ library function can ?

  • [A] color any closed figure
  • [B] draw lines and circles
  • [C] write in variety of fonts and sizes
  • [D] all of above

Overloaded function

  • [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