title: what is the advantage of static function?
body: <p>see in one project source code i have seen belows declaration </p>
  
  <pre><code>static int *foo();
  </code></pre>
  
  <p>so it declare foo as static function returning pointer to int. So here i wana ask you whats the purpose of declaring function as static ?</p>