sound in C

How can I make a beep sound in C?

I've heard that you can make your PC beep using just one line of code in C, like calling `printf("a")` within the main function, but when I tried…