cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
c++ using extern keyword
c++ using extern keyword
Apr 11, 2011 at 4:19am UTC
snakec
(26)
hi can any body explain working of extern function with example code? .I don't know how to use them ?how to declare them ?how to define them? please explain with source code.
Apr 11, 2011 at 4:21am UTC
sasanet
(117)
functions are all extern by default.
and variables are not.
define:
int
test = 0;
in some *cpp file globaly
then in another *.cpp file use:
extern
int
test;
globaly too.
Topic archived. No new replies allowed.