#include<stdio.h>

int main(void)
{
    char nome[50];

    printf("\nDigite o nome: ");
    scanf("%s", &nome);

    int i = 0;
    while (i < 50 && nome[i] != '\0') {
        i++;
    }

    printf("O tamanho da string eh: %d\n", i);

    system("pause");
    return 0;
}