0 11

BIT102 ยท 0 ยท 5 marks

Explain the syntax of fwrite() function. Write a program to create a file named "student.txt" and stores record of any five students given by user.

Explain the syntax of fwrite() function. Write a program to create a file named "student.txt" and stores record of any five students given by user. [5]

C ProgrammingChapter 10: File Input Output and PreprocessorFwrite and fread functions

Parameters: Parameter Description ------------------------ ptr Pointer to the block of memory (data to be written) size Size in bytes of each element to be written count Number of elements to be written stream Pointer to the FILE object where data is written Return Value: - Returns the total numb...