There is nothing wrong with defining a variable with global scope. Another name for it is the heap. I passed a string by reference in the example that I provided above.

Character arrays are refereced by pointers.