title: How to include socket.h in my c file in Ubuntu
body: <p>This is my a.c code :</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;socket.h&gt;
  
  
  int main(void)
  {
      int count[4] = {[2] = 3  }, i;
  
      for (i = 0; i &lt; 4; i++)
          printf("count[%d]=%d\n", i, count[i]);
      return 0;
  }
  </code></pre>
  
  <p>When I compile it, it shows:</p>
  
  <pre><code>a.c:2: fatal error: socket.h: No such file or directory
  compilation terminated.
  </code></pre>
  
  <p>So how do I include it / where can download it?</p>