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
πŸ’¬ Discuss
βœ… Correct Answer: (A) void myFunction() = delete;
Explanation: The correct way to define a function with a deleted definition is 'void myFunction() = delete;'.
Explanation by: Admin
The correct way to define a function with a deleted definition is 'void myFunction() = delete;'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
243
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
80%
Success Rate