STRLEN Function in C

 Program for own  Strlen 


*Write Own Strlen Function *

#include<stdio.h>
#include<string.h>
unsigned int astrlen(char str[]){
int i=0;
while(str[i]!='\0')
i++;
return i;
}
int main()
{
char str[10];
gets(str);
printf("The length of string is %d",astrlen(str));n
}

Comments

Popular posts from this blog

About RAM

Star Topology