Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Define a structure to store the record of library. The
record must consist of at least following fields: Title,
Author, Edition, Price, Publisher, and Category.
-Define functions authorSearch ( ), TitleSearch ( ) and
CategorySearch ( ) to search a book with respect to author,
title and category. [There can be more than one book,
written by one author, in one category]

Answer Posted / sharmaak

Solution is simple. Have a library data structure as a struct containing all the fields
struct library
{
char title[30];
char author[30];
char edition[30];
char price[30];
char publisher[30];
char category[30];
};

But have separate data structure which make different fields searchable in log(n) time.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What was noalias and what ever happened to it?

1048


What is time null in c?

1075


Explain pointer. What are function pointers in C?

1080


Simplify the program segment if X = B then C ← true else C ← false

3020


Is there a built-in function in C that can be used for sorting data?

1269


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1058


What is the difference between ++a and a++?

1215


Explain how many levels deep can include files be nested?

1077


What would be an example of a structure analogous to structure c?

1001


Write a program to swap two numbers without using third variable?

1306


Do pointers store the address of value or the actual value of a variable?

1081


When should structures be passed by values or by references?

1043


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1236


Who invented bcpl language?

1198


Where we use clrscr in c?

1141