08.02.2015, 18:38
Common practice is to prefix global variables with 'g'. However, globals should be avoided wherever possible. If a variable is only used in one function, but it needs to retain its value between calls then use a static local.