My C++ Quiz

The ultimate place to learn C++!

Question #17: What value is printed out for the variable x?

#include <iostream>

int x;

int main()
{
    int y;
    std::cout << x << std::endl;
    std::cout << y << std::endl;
    return 0;
}