Some (stupid) basic questions:
I assume I have to put all functions at the beginning of my code and the "main" program at the end. Is that because the compiler wouldn't recognize declared variables etc. otherwise?
Am I right to assume that I can also define a global variable inside a function and then also use it in the "main" part of the code? Or do I have to define it outside of the function?
These kind of basic things are explained nowhere ...
I assume I have to put all functions at the beginning of my code and the "main" program at the end. Is that because the compiler wouldn't recognize declared variables etc. otherwise?
Am I right to assume that I can also define a global variable inside a function and then also use it in the "main" part of the code? Or do I have to define it outside of the function?
These kind of basic things are explained nowhere ...