C Programming MCQ Question and Answer

C Programming MCQ Question and Answer
21. If an error occurs, the function fseek() returns
  • non-zero
  • zero
  • no value
  • -1
Show Answer
22. The function ftell(fptr)returns
  • the beginning position of the file represented by fptr
  • the end position of the file represented by fptr
  • the current position of the file represented by fptr
  • the middle jposition of the file epresented by fptr
Show Answer
23. The value returned by successful action of ftell(fptr) is
  • -1
  • 0
  • long int value representing the current file position
  • MAX_INT
Show Answer
24. The value returned by ftell() if an error occurs is
  • -1
  • 0
  • Positive value
  • MIN_INT
Show Answer
25. The function call f seek (fp, 0, 0); is same as
  • fp = fopen()
  • rewind (fp)
  • fclose(fp);
  • ftell(fp);
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test