1. When submitting a function, can global variables be declared outside the function?
For example, if I have the C code
am I allowed to save 4 bytes as follows?
I had always assumed not, but answers on Print an ascii spiral in O(log n) memory have led me to wonder.
2. EDIT: as an aside, what about this? I'm pretty sure this one is totally unacceptable, but if you think it is acceptable, please write a corresponding answer.
Where only parameter
n is actually useful for passing information to the function and the parameters passed to
a,b,c can either take arbitrary values or the answerer specifies "the function must be called with
Reversal of edit: As pointed out by Doorknob there are examples of this being considered accepable if the function has additional arguments but may be called with only the arguments specified in the question.