Top "Extern" questions

extern is an access-specifier in C and C++ which defines a global variable that is visible to all object modules.

Static, extern and inline in Objective-C

What do static, extern and inline (and their combinations) mean in Objetive-C using the LLVM compiler? Also, I noticed that …

objective-c static inline llvm extern
How can I use external variables in Python like 'extern int x;' in C?

How can I use external variables in Python, like extern int x; in C? For example, main1.py: from myfunc …

python extern
How to declare constexpr extern?

Is it possible to declare a variable extern constexpr and define it in another file? I tried it but the …

c++ extern constexpr
extern keyword usage

I have three programs in which I am using extern keyword. I am not able to understand the result. Below …

c++ keyword extern
How to name a constant in Objective-C?

What's the naming convention for constants in Objective-C (or most widely used way to name them)? Is there a different …

objective-c naming-conventions constants extern
Linking extern variables in C

In Unix, I have got three main files. One of them is a library and the other one is a …

c extern
C++ best way to define cross-file constants

I am working on a game and have an interesting question. I have some game-wide constant values that I want …

c++ templates constants extern
"extern const" vs "extern" only

I've seen 2 ways of creating global variables, what's the difference, and when do you use each? //.h extern NSString * const …

objective-c global-variables constants extern
static const Vs extern const

I have been using static const in my header files as so: static NSString * const myString = @"foo"; But have read …

ios objective-c c static extern
How to declare my very own CGRectZero like constant?

This is a newbie C/Objective-C question :-) Let say I want a CGRectOne and a CGRectTwo constants. How can …

objective-c static struct constants extern