title: too few arguments to function 'exit'. What is wrong in code?
body: <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  void main()
  {
      int a[10],i,q;
      printf(&quot;Enter elements of array\n&quot;);
      for(i=0;i&lt;10;i++)
      {
      scanf(&quot;%d&quot;,&amp;a[i]);
      }
      printf(&quot;enter number to search: &quot;);
      scanf(&quot;%d&quot;,&amp;q);
      for(i=0;i&lt;10;i++)
      {
          if(q==a[i])
          {
              printf(&quot;Given number is at %dth place&quot;, i);
              getch();
              exit();
          }
  }
      printf(&quot;Given number is not found&quot;);
      getch();
  }
  </code></pre>
  <p>Here I'm facing error &quot; [Warning] incompatible implicit declaration of built-in function 'exit' &quot; and &quot; [Error] too few arguments to function 'exit' &quot;</p>