CP Lab -8 [Structure Based Question]

Post date: Nov 27, 2017 11:24:51 AM

Q1. Write a C program using Structures , read the details of ‘n’ number of book [Book name, Book price, Author and Year of Edition]. Store them in structure variable. Ask user to search for a book, accept book name as search string. Search the book name in the structure and display the details of the book, otherwise display “Book not found.”.

Q2. Write a menu driven C program using structures to read student details like name, IDNO, CGPA, Station from the user. Given a student IDNO as input, the program should display the student details if found else print “student not found” message.