Home / Report Question

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