how to show a varibale is global in c++ code example Example: cpp global variable int g_x; // global variable g_x