Q. Which of the following can be used to define a function in C++?

  • (A) function keyword
  • (B) fn keyword
  • (C) def keyword
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) None of the above
Explanation: In C++, functions are defined using the return type followed by the function name and parameters.
Explanation by: Praveen Singh
In C++, functions are defined using the return type followed by the function name and parameters.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
150
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
97%
Success Rate