Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/27/02 01:55
Read: times


 
#33255 - RE: local global???!!!?!?!?!
"This is only true if you declare the variable with the extern keyword in the other file"

No.
The variable is global, irrespective; the extern just gives the other file access to it.

You can declare an extern for a totally fictitious symbol, and that file will compile just fine - but it won't Link, because that's where external references get resolved and there is no such global!

List of 24 messages in thread
TopicAuthorDate
C++ style in C            01/01/70 00:00      
RE: C++ style in C            01/01/70 00:00      
RE: C++ style in C            01/01/70 00:00      
RE: C++ style in C            01/01/70 00:00      
RE: C++ style in C            01/01/70 00:00      
RE: C++ style in C            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C/ Erik            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C/ Erik            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. //Judy / Erik            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      
RE: C++ style in C. Erik            01/01/70 00:00      
RE: local global???!!!?!?!?!            01/01/70 00:00      
RE: local global???!!!?!?!?!            01/01/70 00:00      
RE: local global???!!!?!?!?!            01/01/70 00:00      
RE: C++ style in C            01/01/70 00:00      
RE: C++ style in C. mahmood            01/01/70 00:00      

Back to Subject List