A

Admin • 802.91K Points
Coach

Q. Which of the following is the correct way to define a function with a noexcept specifier in C++?

  • (A) void myFunction() noexcept { }
  • (B) void myFunction() { }
  • (C) Both A and B
  • (D) None of the above
  • Correct Answer - Option(A)
  • Views: 5
  • Filed under category C++
  • Hashtags:

Explanation by: Admin
The correct way to define a function with a noexcept specifier is 'void myFunction() noexcept { }'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.