title: main() vs int main() in DevC++
body: <p>I am using DevC++.</p>
  
  <ul>
  <li>when I write <code>void main()</code>, the compiler says main must return int.</li>
  <li>when I write <code>main()</code>, the compiler reports nothing.</li>
  <li>when  write <code>int main()</code>, the compiler asks me to return something.</li>
  </ul>
  
  <p>My question is what is main() without int and void?why does compiler behave differently for int main() and just main()?</p>