My C++ Quiz

The ultimate place to learn C++!

Question #22: What value should be printed for x?

#include <iostream>

int main()
{
    int x = int() = 3;

    std::cout << x << std::endl;

    return 0;
}