Q. Which of the following is true about function overloading in C++?

  • (A) Functions must have different names
  • (B) Functions must have different return types
  • (C) Functions must have different parameter lists
  • (D) Functions must be defined in different files
πŸ’¬ Discuss
βœ… Correct Answer: (C) Functions must have different parameter lists
Explanation: Function overloading in C++ requires functions to have the same name but different parameter lists.
Explanation by: Praveen Singh
Function overloading in C++ requires functions to have the same name but different parameter lists.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
127
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
90%
Success Rate