Answer by
Hasan72 (572)
In C++ a global variable is not an object. A global variable is a variable that can be accessed from any part of the code. It has an unlimited potential for creating mutual dependencies. The use of global variables makes software harder to read and understand. Undefined variable's function is automatically considered as global variable.