#include <stdio.h>

char s[] = "RENO"; // comprende anche '\0'

int str_len(char *p) {
    int i;
    // p[i] equivale a *(p+i)
    for(   ; p[i] != '\0'; i++) {}
    return i;
}

int main() {
    printf("%s è lunga %d", s+1, str_len( s+1 ) );
}

Embed on website

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