Local & Global Variable
#include
using namespace std;
// Global variable declaration:
int a = 20;
int main ()
{
// Local variable declaration:
int a = 10;
cout << a;
return 0;
}
Output
10
Download this app for more programs and tutorials
https://play.google.com/store/apps/details?id=cpp.programming
Comments
Post a Comment