i want, if the name and surname is found in the array, i want to return that the patient is found, otherwise he is not found.Code:bool check_if(informationT a[],int size){int i; char sur[20],name[15]; printf("Give patient's last name \n"); gets(sur); printf("Give patient's first name \n"); gets(name); for (i=0; i<size; i++){ if ((sur == a[i].epwnymo) && (name == a[i].onoma)) return true; else return false; } }
i have tried break; too, but nothing changes.
All kind of help is welcome
Thanks