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

Question #248 Difficulty: 2

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

    #include <algorithm>
#include <iostream>

int main() {
    int x = 10;
    int y = 10;

    const int &max = std::max(x, y);
    const int &min = std::min(x, y);

    x = 11;
    y = 9;

    std::cout << max << min;
}

Hint:

min() and max() return references, not temporaries.

Answer:

Mode : Quiz

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