/* * @topic Q00100 Feb 7, 2013 -- global and local variables * @brief in-class demo 1 -- variables */ #include <iostream> // global variable declarations: int gx = 123; int main() { std::cout << "Hello " << gx << "\n"; int count = gx; // local variable initialized count = count + 1; // local variable modified std::cout << "Hello " << count << "\n"; return 0; }