Monday, October 31, 2016

C programming Questions based on File Management.

  • List various modes of opening a file in C program.
  • Give the difference between “r”, “w” and “a” mode of file opening in C program.
  • What is the difference between w and w+ mode?
  • State the use of fopen() and fclose() function in C program.
  • Give the name of function which can be used to read a single character from a file in C program.
  • What is the use of FILE in C file management program?
  • Give the name of function which can be used to read a line from a file in C program.
  • What is the use of fprintf() function in C program?
  • Give difference between fputc() and fputs() function.
  • State the use of fscanf() function in C program.
  • Give difference between fgets() and fgetc() function. 

In case of any doubt, you can contact us through contact us page of the blog.

* * * * *

No comments:

Post a Comment