5 years ago in C++ Functions

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

Overall Stats

Attempted 95
Correct 13
Incorrect 25
Viewed 57

Answers

Guest
Guest
indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying A function can have all its arguments as default. is correct answer

Sarita Nauriya
Sarita Nauriya - 5 months ago

Sarita Nauriya from Hyderabad, India is saying A default argument cannot be redefined in later declaration. is correct answer

Arjunasor Syiem
Arjunasor Syiem - 7 months ago

Arjunasor Syiem from Shillong, India is saying A function can have all its arguments as default. is correct answer

pavithra p
pavithra p - 8 months ago

pavithra p from Bengaluru, India is saying A default argument cannot be redefined in later declaration. is correct answer

Ayush Rai
Ayush Rai - 8 months ago

Ayush Rai from Kapurthala Town, India is saying Default argument cannot be provided for pointers to functions. is correct answer

Related Questions

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

Which member function of class cannot modify its objects attributes ?

  • [A] friend functions
  • [B] Private member functions
  • [C] Constant member functions
  • [D] Static member functions

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

Which of the following type of function is an ideal candidate for being declared inline ?

  • [A] A function that is small and is not called frequently
  • [B] A function that is small and is called frequently
  • [C] A function that is not small and is not called frequently
  • [D] A function that is not small and is called frequently

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.