May 22, 2011 at 8:57pm
hey guys!
-i have declared a variable called total inside of main
-i want to use total inside of the functions prototypes that are before main
is that possible ?
i tried it and it gives me error
total' : undeclared identifier
any advice?
May 22, 2011 at 9:11pm
oh ok thank you very much :)
May 22, 2011 at 9:17pm
OP said his variable was inside main
. I believe use of global variables is recommended against where possible.