Nec C++ Quiz — 0045

According to the C++17 standard

  • The program has a compile-time error.
  • The program has unspecified/implementation-defined behavior.
  • The program has undefined behavior.
  • The program is guaranteed to output:

--

--

Nec C++ Quiz — 0042

According to the C++17 standard

  • The program has a compile-time error.
  • The program has unspecified/implementation-defined behavior.
  • The program has undefined behavior.
  • The program is guaranteed to output:

--

--