#include <stdio.h>
int main() {
char str[10] = "coding";
char *p = str;
int len = 0;
int count = 0;
while (*p != '\0') {
p++;
count++;
}
len = count;
printf("%d",len);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: