0
what I intend to do is quite simple. I make the program ask for a password, the program compares, and if the password is valid, the program proceeds.
An example:
char pass[5];
printf("insira a senha: ");
while(pass!="asdfg") { //enquanto a senha for diferente/inválida
scanf("%s",&pass); //entrada da senha
};
When I try to execute this code, the program simply does not accept the password asdfg
and keeps asking for the password.
In this little piece of code of yours, the error lies not only in comparison, but in other places as well. Too bad you can’t show it, since the question was closed.
– user5299