Hi, I am studying about Pointers & String. I hardly understand them. I got many question but I try to ask directly.
This is a program that counts consonants
I want to know how strlen function worksCode:int strlen(char *s){ int n; for(n=0;*s!='\0';s++) if(isalpha(*s)) n++; return n; } void main(){ char str[]="I love C"; int len; len=strlen(str); printf("Lenght of %s is %d", str,len); }