Put it inside main.

C has no concept of having executable code outside of functions. C++ can do it, but that's only for constructing global objects.