Can I return outside a function?


#1

Question

Can I return outside a function?

Answer

No, you should not be using return outside of a function. This could have side effects like crashing your application or the premature termination of your program.