title: how to make a c console program exit with exit function?
body: <pre><code>#include&lt;stdio.h&gt;
  #include&lt;stdlib.h&gt;
  
  void main(){
  
      exit(0);
  
  }
  </code></pre>
  
  <p>This is my code in c how could I make the console exit??I have tried to use the exit function but it seems like it doesn't work</p>