1.

Create a structure that describes a restaurant. It should have members that include the name, address, average cost and type of food. Write a routine that points out all restaurants of a given food type in order of cost, with the least cost first

Answer»

The general SYNTAX for a struct declaration in C is: struct tag_name { TYPE member1; type member2; /* declare as many members as desired, but the entire structure SIZE must be KNOWN to the compiler. */ }; Here tag_name is optional in some CONTEXTS.



Discussion

No Comment Found