As far as I remember, Global variabls are those variables that are defined before declaration of the main() function.

#include<iostream.h>
int i; //Global variable
void main()
{
.......
.......
....
....
}
Source(s):
My memory