Q. Which of the following is an example of function overloading in C++?

  • (A) Using multiple functions with the same name but different parameters
  • (B) Using a function with the same name in a derived class
  • (C) Using a function inside a loop
  • (D) Defining a function inside a structure
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using multiple functions with the same name but different parameters
Explanation: Function overloading allows multiple functions with the same name but different parameters.
Explanation by: Ram Sharma
Function overloading allows multiple functions with the same name but different parameters.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
155
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
98%
Success Rate