I am creating a simple search feature in a C database which is using an array.
but i cannot understand why the following code will not find the value in the which is in the surname field of the array.
if (records[temp].surname=="a") printf("TEST");
i is the number of records in the array
temp is the counter
records is the name of the array
with surname as the field
the character "a" is in a record in the surname field of the array
can any1 see the problem