title: How to execute a particular function before main() in C and JAVA ?
body: <p>I want to execute one function before main function in C and JAVA language.
  I know one way that is, by using <code>#pragma</code> directive in C language. Is there any other way to do that in both languages?</p>