A

Admin • 36.96K Points
Coach

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

  • (A) void myFunction() = delete;
  • (B) void myFunction() { }
  • (C) Both A and B
  • (D) None of the above
  • Correct Answer - Option(A)
  • Views: 36
  • Filed under category C++

Explanation by: Admin
The correct way to define a function with a deleted definition is 'void myFunction() = delete;'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics