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
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 15
Thread: How to define global variablesThreaded View
|
Click Here to Expand Forum to Full Width |