Question: Please write the code in C 1. Write a program that performs the following actions: struct book { char title[72]; int year_published; int pages; };

Please write the code in C
1. Write a program that performs the following actions: struct book { char title[72]; int year_published; int pages; }; // title of the book // year the book was published 1/ number of pages in the book a. Declares an instance of the structure above, initializes it with values and prints the elements. a b. Now pass the structure as a pass-by-value parameter to a function printstruct_value which prints the elements of the structure c. Now pass the structure as a pointer (pass-by-reference parameter) to a function printstruct_point which prints the elements of the structure d. Create a new variable type for the above structure using typedef and use it for a, b and c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
