In the following function I want to compare the elements of an array of 1000, but I can not find a way to compare them successfully, even using strcmp()
.
void verifica_conta(int *ptr) {
int i; //Posição
for(i = 0; i < 1000; i++){
if(strcmp(*ptr, *(ptr+i)) == 0) {
printf("\tConta já existente\n");
}
}