You are taking quiz cppquiz.org/q/jqkv9. After 0 of 10 questions, you have 0.00 points.

Question #389 Difficulty: 2

According to the C++23 standard, what is the output of this program?

    #include <iostream>

int main() {
  int i = 1, j = 1, k = 1;
  std::cout << ++i || ++j && ++k;
  std::cout << i << j << k;
}

Hint:

1: cout has a conversion operator to bool.
2:operator << has the highest precedence of the operators in this question.

Answer:

Mode : Quiz

If you want to quit the current quiz and go back to training mode, click here.