#include <stdio.h>
int length(char *str)
{
    int i = 0;
    while (str[i])
        i++;
    return i;
}
int main() {
    int i = 0;
    int len = 0;
    char *str[18] = {"abc", "abgfgf"};
    while (str[i])
    {
        len = len + length(str[i]);
        i++;
    }
    printf("%d\n", len-3);
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: