Submitted by yogesh on Mon, 04/04/2011 - 21:18
Sleep function delays program execution for a given number of seconds.
Declaration: void sleep(unsigned seconds);
Submitted by yogesh on Mon, 04/04/2011 - 16:55
nosound function turn off the PC speaker.
Declaration : void nosound();
Submitted by yogesh on Mon, 04/04/2011 - 16:43
Sound function produces the sound of a specified frequency. Used for adding music to c program, try to use some random values in loop, vary delay and enjoy.
Declaration:- void sound(unsigned frequency);
Submitted by yogesh on Mon, 04/04/2011 - 16:35
setdate function is used to change system date.
Submitted by yogesh on Mon, 04/04/2011 - 16:22
gettime in c: gettime function is used to find current system time. We pass address of a structure varibale of type ( struct time ).
Submitted by yogesh on Mon, 04/04/2011 - 16:08
Program to print the current system date, getdate c code below explain how to use this function to print computer date.
Getdate example
C programming code to print date
Submitted by yogesh on Fri, 11/02/2011 - 11:58
Delay in c: delay function is used to suspend execution of a program for a particular time.
Declaration :- void delay(unsigned int);
Here unsigned int is the number of milliseconds ( remember 1 second = 1000 milliseconds ). To use delay function in your program you should include the dos.h header file.
C programming code for delay
#include<stdio.h>
#include<stdlib.h>
main()
{
printf("This c program will exit in 10 seconds.\n");
delay(10000);
return 0;
}