P
Praveen
Hi,
I would like to know is it possible not to use extern in a program.
For eg I have the following programs
file a.c contains a variable declaration as follows
bool a = TRUE;
I have declared the variable a as extern in the header file a.h as
follows
extern bool a;
In another file b.c which has included the header file a.h I try to
set the variable to FALSE;
I would like to know is there a way of not to use the extern
declaration and still achieve the above scenario.
Thanks in advance
I would like to know is it possible not to use extern in a program.
For eg I have the following programs
file a.c contains a variable declaration as follows
bool a = TRUE;
I have declared the variable a as extern in the header file a.h as
follows
extern bool a;
In another file b.c which has included the header file a.h I try to
set the variable to FALSE;
I would like to know is there a way of not to use the extern
declaration and still achieve the above scenario.
Thanks in advance