Question: c language Consider the following Book and String structure (note that c language does not have String data type, so we are building our own
Consider the following Book and String structure (note that c language does not have String data type, so we are building our own String type here). Write a function create book that takes the name of a book and the price of a book. The function allocates memory for a Book and stores the passed name and price for the book in it and then return the allocated memory. Note that during this process you need to perform 3 memory allocations typedef struct string char streed esory allocation intength: 1 Strings typedef structor string interesting structure floatarice DOOR create book charfleet price
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
