The delay function of dos.h
header file does not work in codeblocks. It shows that delay function is undeclared.
the following link contains the program below.
link
int main ()
{
printf ( " This c program will exit in 10 seconds.\n");
delay(10000);
return 0;
}