Function nosound turn off the PC speaker.
Declaration: void nosound();
C programming code for nosound
#include <dos.h>
int main()
{
sound(400);
delay(1000);
nosound();
return 0;
}