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,204
Likes: 11
Community Owner
Community Owner
Joined: Feb 2002
Posts: 7,204
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
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,204
Joined: February 2002
Forum Statistics
Forums41
Topics33,839
Posts68,797
Members2,177
Most Online73,244
Nov 9th, 2025
Latest Postings
Top Posters
UGN Security 41,392
Gremelin 7,204
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Cyrez 1
Girlie 1
unreal 1
Crime 1
Powered by UBB.threads™ PHP Forum Software 8.0.0