Marie.L

0

votes
1

answer
22

views

How to use structs in binary search?

I'm trying to learn c (its my first language) and i have some problems with this task. (It is no homework!) Task: Implement the binary search algorithm on an array of structs of the following kind (sorry for my English). struct { unsigned int number; char* food; int price; } pk; The given array is...
Marie.L