#include <stdio.h>
#include <string.h>
int main(void) {
char texto[50];
printf("\nInforme seu nome completo: "); printf("\nO tamanho da string: %i\n", cont
); for (int i = 0; i < cont; i++) {
}
texto[cont - 1] = '\0';
printf("\nO tamanho da string: %i\n", cont
); }
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKHZvaWQpIHsKICAgIGNoYXIgdGV4dG9bNTBdOwogICAgcHJpbnRmKCJcbkluZm9ybWUgc2V1IG5vbWUgY29tcGxldG86ICIpOwogICAgZmdldHModGV4dG8sIDUwLCBzdGRpbik7CiAgICBpbnQgY29udCA9IHN0cmxlbih0ZXh0byk7CiAgICBwcmludGYoIlxuTyB0YW1hbmhvIGRhIHN0cmluZzogJWlcbiIsIGNvbnQpOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBjb250OyBpKyspIHsKICAgIAlwcmludGYoIiVkICIsIHRleHRvW2ldKTsKICAgIH0KICAgIHRleHRvW2NvbnQgLSAxXSA9ICdcMCc7CiAgICBjb250ID0gc3RybGVuKHRleHRvKTsKICAgIHByaW50ZigiXG5PIHRhbWFuaG8gZGEgc3RyaW5nOiAlaVxuIiwgY29udCk7Cn0K