© 2014 Firstsoft Technologies (P) Limited. login
Hi 'Guest'
Home SiteMap Contact Us Disclaimer
enggedu

C and C++ Interview Questions

8. Advantages of rewind()?

Ans:

We always move the file pointer in forward direction only.
Suppose we want to move to beginning we need another file pointer.
To avoid this kind of operations we use rewind.
rewind move file pointer to the first character of the pointer.

Ex 1: Macro FILE is defined in which of the following files:
1. stdlib.h
2. stdio.c
3. io.h
4. stdio.h

Ans: 4

Ex 2: Is it necessary that a file created in text mode must always be opened in text mode for subsequent operations?

Ans::
 
YesIs it is necessary that a file created in text mode must always be opened in text mode for subsequent operations.

SLogix Student Projects
bottom