define global variable in c programhow to define


Define global variable in c++ program:

How to define a global variable and need of global variable in c++ program.

int main()

{

   int m=20;

   clrscr();

   for( int i=0;i<4;i++)

   {

     m=60;

     cout << m;

     cout<<"the global variable is\n"<

   }

     getch();

return m;

}

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: define global variable in c programhow to define
Reference No:- TGS0174858

Expected delivery within 24 Hours