Should I use global variables or passing the variable to other functions?
I do need a variable to all the program, now, I did hear that using global-variables isn't a nice thing, now I think in some case's is better to use global-variables instead passing them trough all the functions, look:
Or should I make in this way:
//my global variable
//here I use my global var..
Thanks for the help
void foo(char name, int Blah, int Bloh);
char name; //here isn't global