Local & Global Variable

#include <iostream>
using namespace std;

// Global variable declaration:
int a = 20;

int main ()
{
// Local variable declaration:
int a = 10;

cout << a;

return 0;
}

Output
10

0 അഭിപ്രായ(ങ്ങള്‍):