
Originally Posted by
rinkujames
Hello all i have created a simple program in c but delay function is not working
Code:-
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<io.h>
#include<time.h>
#include<stdlib.h>
int length(char *s)
{
int a;
a = strlen(s);
return a;
}
int main()
{
char name[50];
printf("Enter your name = ");
scanf("%s",name);
printf("\nPlease wait computer is determining the length of your name");
delay(10000);
printf("Your name has %d digits",length(name));
getch();
return 0;
}
compile time msg :- "0 error 1 warning impilicit declaration of delay function"
please help