#include <stdio.h>
#include <string.h>

int main() {
    char ch[12];
    strcpy(ch, "abc");
    printf("ch tem %lu bytes\n", sizeof(ch));
    printf("ch conta com %lu caracteres\n", strlen(ch));
    strcpy(ch, "texto longo");
    printf("ch conta com %lu caracteres\n", strlen(ch));
}

//https://pt.stackoverflow.com/q/155932/101