Previous Thread
Next Thread
Print Thread
Rate Thread
#17292 06/17/06 06:39 AM
Joined: Jun 2006
Posts: 7
L
Junior Member
Junior Member
L Offline
Joined: Jun 2006
Posts: 7
who can tell differ from "int" and "extern int"? "the C++ Primer" says ,"extern int" is always written in the header files?..
thanks!!

Sponsored Links
▼ Sponsored Links ▼ ▲ Sponsored Links ▲
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
I believe that External (or Global) Integers (extern int) are able to be used outside of a function, whereas a standard integer is supposed to be used inside of a function.

(keep in mind, I'm in no way a cpp programmer, i simply know how to google things properly to have a proper outcome)


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Joined: Jun 2006
Posts: 7
L
Junior Member
Junior Member
L Offline
Joined: Jun 2006
Posts: 7
Also I still haven't really got it,but THANKS indeed!

Joined: Jun 2006
Posts: 1
N
Junior Member
Junior Member
N Offline
Joined: Jun 2006
Posts: 1
extern int a;
means the 'a' was defined in some other files .


Link Copied to Clipboard
Member Spotlight
None yet
Forum Statistics
Forums41
Topics33,840
Posts68,858
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Girlie 1
unreal 1
Crime 1
Ice 1
Powered by UBB.threads™ PHP Forum Software 8.0.0