can i define procedures before the main loop procedure

I am writing some code that is going to call on various functions in various orders depending on user input, is it ok that I have put all of my function declarations before the main loop.


As Coding Badly wrote, the answer is yes. You could have tried this yourself and answered the question more quickly than by using the Arduino forum.

It is actually a special feature of the Arduino IDE that you can put function definitions in .ino files after the point where they are called. Normally, in c/c++ this would require the explicit use of a function prototype.