Top "Global-variables" questions

Global variables are variables that are accessible from all elements of a software component.

"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
What is the difference between static global and non-static global identifier in C++?

What is the difference between static global and non-static global identifier in C++?

c++ static global-variables identifier
Reading and writing global variables across scripts in PHP

Does PHP have global variables that can be modified by one running script and read by another?

php scripting webserver global-variables data-transfer
Java - Listen to variable change

First of all i am brand new to Java : / I have been trying to solve this problem on my own …

java global-variables actionlistener
Outer Variable Access in PHP Class

Consider the following situation file: ./include/functions/table-config.php containing: . . $tablePages = 'orweb_pages'; . . file: ./include/classes/uri-resolve.php containing: class …

php oop class global-variables data-access
How special is the global variable _G?

Excerpt from Lua 5.3 manual: _G A global variable (not a function) that holds the global environment (see §2.2). Lua itself does …

lua global-variables environment lua-table
Why does local variable kill my global variable?

Sorry for this question, but this issue really screwed up my day. The following Code alerts 10 as it should: var …

javascript variables global-variables local-variables
declaring a variable-length array as a global variable in C

How is it possible to declare a variable-length array as a global variable ? when variable length array is declared in …

c global-variables variable-length-array
In Inno Setup Scripting (Pascal), how do you set a global variable's initial value?

(I'm pursuing Inno Setup scripting, but my understanding is that the [Code] section uses Pascal syntax, or a close approximation. …

global-variables inno-setup default-value pascal
What is the best strategy for sharing variables between source files in c/c++?

I frequently have to write c/c++ programs with 10+ source files where a handful of variables need to be shared …

c++ c global-variables extern