Match List I (functions) with List II (uses). List I: A. fseek(), B. ftell(), C. feof(), D. rewind(). List II: I. Gives the current position in the file; II. Sets the position to the beginning of the file; III. Sets the position to a desired point in the file; IV. Used to test for an end-of-file condition.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. A-III, B-I, C-IV, D-II
Explanation
fseek() moves to a chosen position, ftell() reports the current position, feof() tests for end of file, and rewind() returns to the start.
More Programming Languages and Computer Graphics questions
- Which of the following statement is not True?
- Which of the following statements about pointers in C are TRUE. (A) Pointers can be used to access array elements (B) Pointers can store th…
- Which of the following are TRUE about constructors in C++ ? (A) A constructor can be overloaded. (B) A constructor does not have a return t…
- #include<stdio.h> void f1(char *x, char *y) { char *t1; t1 = x; x = y; y = t1; } void f2(char **x, char **y) { char *t1; t1 = *x; *x = *y;…
- #include<iostream.h> using namespace std; void swap(int &x, int &y) { int temp=x; x=y; y=temp; } int main() { int a=5, b=10; swap(a,b); swa…
- Arrange the following steps of file handling in C in the correct order : (A) Close the file (B) Read from or write to the file (C) Open the…