Question:

Which method moves a file pointer to the nth character with respect to r position?

Updated On: Nov 4, 2024
  • fp.seek(r)
  • fp.seek(n)
  • fp.seek(n, r)
  • seek(n, r).fp
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The seek(n, r) method moves the file pointer to the nth character relative to the reference position r (start, current, or end of file).
Was this answer helpful?
0
0