It depends on the C (or C++) compiler (and the enabled compiler flags). The compiler used by OnlineGDB allows you to do that.
But why would you want to do that in the first place? What is wrong with int, the default return value?