2081.2 3

C Programming2081.210 marksFgets and fgetc functions

Differentiate between fgets() and fgetc(). What is the task of typedef? Write a program to define a structure Book with data members name, price and author. Display the names of the book having price greater than 1000.

Differentiate between fgets() and fgetc(). What is the task of typedef? Write a program to define a structure Book with data members name, price and author. Display the names of the book having price greater than 1000.[10]

Feature fgets() fgetc() --------- Purpose Reads a string (line) from a file Reads a single character from a file Syntax fgets(str, n, fp) fgetc(fp) Return Type Returns char (pointer to string) Returns int (character as integer) Parameters Takes string buffer, size, and file pointer Takes only fil...

Up nextWrite an algorithm and flowchart to test whether the given integer is odd or even.