-3
I want to increment the cont variable if the character vector is not null, do you understand? But nothing happens. Why?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void main(){
int i;
char testeNome[190];
int cont;
printf("Digite seu primeiro nome: ");
scanf("%s",testeNome);
while(testeNome != "\0"){
    cont++; 
    }
printf("%d",cont);
}
						
Ps.: I cannot use strlen so I want to find out the vector size value
– Aline