Top "Global" questions

Refers to a space where variables and other items may be accessed from any scope.

How do you define a global function in C++?

I would like a function that is not a member of a class and is accessible from any class. I …

c++ function global
How to define a global variable that can be accessed anywhere in my application?

Possible Duplicate: Global int variable objective c I would like to create a global variable. I want to access to …

iphone objective-c variables global
Changing a global variable from inside a function PHP

I am trying to change a variable that is outside of a function, from within a function. Because if the …

php function variables global
global variables in php not working as expected

I'm having trouble with global variables in php. I have a $screen var set in one file, which requires another …

php global
Static global variables in C++

I would like to make an array of integers via the malloc method. I want this array to be global …

c++ variables pointers static global
Replace all instances of character in string in typescript?

I'm trying to replace all full stops in an email with an x character - for example "my.email@email.…

javascript string typescript replace global
How to define global functions in PHP

How can I define a global function which would be accessible from any page?

php function global
Why are global variables always initialized to '0', but not local variables?

Possible Duplicate: Why are global and static variables initialized to their default values? See the code, #include <stdio.h&…

c variables global local
Preserving global state in a flask application

I am trying to save a cache dictionary in my flask application. As far as I understand it, the Application …

python flask global state
python dictionary passed as an input to a function acts like a global in that function rather than a local

I am very confused by the behaviour below. Cases 1, 3, and 4 perform as I would expect, but case 2 does not. Why …

python variables dictionary global local