#include <stdio.h>
#include<string.h>
int main() {
char str[100]="M i a";
char *ptr;
int length;
int i=0;
ptr=str;
while(str[i]!='\0'){
length++;
i++;
}
printf("String length : %d",length);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: