Should I declare a variable inside or outside the main function?
44960
Are global variables bad?
116190
Declaring variables inside a switch statement
91006
Why can I refer to a variable outside of an if/unless/case statement that never ran?
21964
What are the conventions for indicating programming variables within text?
74517
Is using 'var' to declare variables optional?
80225
Why is my global variable shadowed before the local declaration?
2701
Assigning to variable from parent function: "Local variable referenced before assignment"
9816
Why is Main method private?
151869
What's the scope of a variable initialized in an if statement?
79805
Which is better, return value or out parameter?
6921
VB.Net variable declaration : type or not to type?
10081
Is there a difference between foo(void) and foo() in C++ or C?
155909
Is it better to use C void arguments "void foo(void)" or not "void foo()"?
20500
Declaring variables in external script
58982
to Global Variables inside functions
152174
How to declare a global variable in php?
88288
Calling a function that's defined inside a function