I want to increment the cont variable if the character vector is not null, understand? But nothing happens. Because?
#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 != "#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 != "%pre%"){
cont++;
}
printf("%d",cont);
}
"){
cont++;
}
printf("%d",cont);
}