A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(D)
  • Views: 25
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

In C++, functions are defined using the return type followed by the function name and parameters.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.