#include <iostream> int x = -20; void MyF(){ x+=10; } int main(){ int x = 2; MyF(); std::cout << ::x << std::endl; // х == -10 return 0; }