title: How to close an application itself and a terminal?
body: <p>In my C console application, I would like to exit the application and on the same time fire an exit command to close a terminal. However, following code seems not work. Once I run the application, it exit the application, but not close the terminal.</p>
  
  <pre><code>int main(void)
  {
    system("exit");
    return 0;
  }
  </code></pre>
  
  <p>Please give any advise. </p>