Professional Documents
Culture Documents
1. Person Structure
{
Name Char 100
Id integer
Address Char 100
}
main(){
print_people(people);
print_people(id_sorted);
print_people(name_sorted);
3. Implement binary search on id and
name.
sample_id = 1;
binsearch_id(id_sorted, sample_id,
0,14);
char *sample_name=”ABCD”;
binsearch_name(name_sorted,
sample_name, 0,14);
The deliverables –
1. main() function along with the structure
declaration and sample values for the fields + the
function calls in series for testing.
Marks 10
2. Printing function definitions in a compatible way
Marks 20
3. Sorting function definitions Marks 30
4. Binary function definitions Marks 40