create sound using C program

I could not recall the function in C to generate diff type of sounds.

Can somebody help me out.

Sound is not part of the standard C libraries.

You need to indicate what run-time environment you are refering to and what form you want the sound to be in.

it defers upon the environment.

for DOS, we need to call graphics.h and beep in it.