Back To C++ Basic Index
a global variable can be accessed from any function in the program, a global variable is common to all functions
//program to demonstrate global variables #include
#include
int a=10; void print() { cout<<"\nvalue of a is "<