title: How to make a Beep sound in C on Windows?
body: <p>I am trying to make a program which includes a beep noise. I work on a 32 bit Windows Vista. I am using the Code::Blocks IDE which runs on a GNU compiler. My sample code is - </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;windows.h&gt;
  #include &lt;dos.h&gt;
  
  int main(void)
  {
      Beep(750, 300);
      printf("\n \n \t This is a dummy program for Beep.");
      getch();
  
      return 0;
  }
  </code></pre>
  
  <p>On the Internet I read that we could also use \a in printf to make a beep. I tried that but it is not working. I checked my speakers and sound card. Everything is perfect but I hear no beep. Even the method I displayed in my sample code does not work.</p>