#include <stdio.h>
int stringlength(const char*str){
int length=0;
while(str[length]!='\0'){
length++;
}
return length;
}
int main(){
char mystring[]="lacasa de papel";
int length=stringlength(mystring);
printf("length of the string;%d\n",length);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: