TEST.H
int i=9;  //Global Variable
     DEMO.CPP
#include<iostream.h>
#include<conio.h>
#include"TEST.H"
extern int i;         //External Variable
void main()
{
                clrscr();
                cout<<"External Variable : "<<i<<endl;
                getch();
}

210

Advertisements