Create a structure that can hold the information of Book with bookID, title and price. Read and store N books in "book.dat" from the user. Display the title of the books having price<1000.
Marks: 10Chapter: Unit 8: Structures and Unions
Comprehensive questions and detailed answers for Unit 8: Structures and Unions. Perfect for exam preparation and concept clarity.
Create a structure that can hold the information of Book with bookID, title and price. Read and store N books in "book.dat" from the user. Display the title of the books having price<1000.
When do we prefer union rather than structure? Give an example.
Create a structure "mobile" with data member model and price and display the model of mobile having price more than Rs 10,000.