title: Using return 0; in void function is possible or not?
body: <p>I've recently submit a project of multiply and division of large numbers to my instructor using C programming in code::blocks.
  in the middle of the code, mistakenly I used return 0; in a void function:</p>
  
  <pre><code>void division_function (char str1[MAX_STR_LEN], char str2[MAX_STR_LEN])
  {
      int len1 = strlen(str1);
      int len2 = strlen(str2);
      int num1[len1];
      int num2[len2];
  
      // In case the second number has more digits:
      if (len2 &gt; len1)
      {
          printf("\nResult of division = 0");
          printf("\nRemainder = %s ", str1);
          return 0 ;
      }
      //rest of the code
  </code></pre>
  
  <p>anyway after submitting the instructor mailed me that the code failed due to using return a value in void function! 
  I know I should have used (return;) instead of (return 0;) because void function return nothing!
  my problem is why I don't get any errors in my console!
  simply I tested this code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  void function ();
  int main()
  {
      function();
      return 0;
  }
  void function ()
  {
      printf("OK");
      return 0;
  }
  </code></pre>
  
  <p>again I got no error and the output is OK.
  this time my problem is not getting the error which seems I should get!</p>