User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:dos.h:delay

delay

description of delay

delay function is used to suspend execution of a program for a particular time
the parameter are number of milliseconds ( 1 second = 1000 milliseconds)

#include<stdio.h>
#include<dos.h>
 
int main( void )
{
    printf("This c program quits in 42 seconds.\n");        
    delay(42000);                        
    return 0;
}

output of delay c example

  This c program quits in 42 seconds

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/dos.h/delay.txt · Last modified: 2024/02/16 01:06 (external edit)

Impressum Datenschutz