title: Is It Necessary to Return a Value in Main()?
body: <p>I was just writing a quick program for calculating some things when I came across the return statement/exit statement for the C program.</p>
  
  <p>I declared <code>main()</code> to be of type <code>int</code>, so I would have to put in a return of an integer, or my program would not compile correctly. However, is it acceptable to make <code>main</code> a <code>Boolean</code> or even <code>void</code>?</p>
  
  <p>I know the standard way to create a C program is to return a value so any problems can be sorted out, among other things, but wouldn't a <code>Boolean</code> work the same way? Also, could I get away with declaring it <code>void</code> and not having problems with the operating system still running my program after it has been terminated?</p>
  
  <p>Thanks for any and all help.</p>