Question
Explain the following function for manipulating file pointers, with the help of example program.
- Seekg()
- Seelp()
Answer :
Word Count : 194
_____ __________ _______ ________ ___ _________ ______ _______.
____ __________ _________ ________ __________ ________ ________.
_________ ________ ________ _________ __________ _____ _____ ___ _________ __________.
________ ___ _____ ________ _______ _________ _________ _____ _____ ___.
______ _____ ___ _______ __________.
______ _____ ________ ____ ____ _________ ______ ___.
__________ ______ ______ ___ _____ _____ ____ _________ ____ ____ ______.
__________ ___ ___ _______ ___ ____ _________ _________.
_________ ____ _________ _______ __________ ________ _________ ___ ______ ____ ____.
_______ _____ ____ ________ _________ _________.
___ _____ _______ ______ _________.
____ _____ ________ ____ _________ _______ ______ ______ _____ _______ ____.
__________ ___ ________ ________ _______ __________ ____ ____ _______ ____ _____ _________.
______ _______ _________ ________ ___.
___ ____ ______ ____ ________ __________ _____ ____.
_____ ______ _____ ____ ______ _________ _________ _______.
____ ________ _____ _________ _____ ______.
______ _____ _______ _____ _____ ______ ______ ___ ______ ______ __________.
_____ _____ ___.
Skip in 10
Seekg():- This function moves the input(get) pointer to a specified location Seekg(offset,refposition);
EXAMPLE:-
#include<iostream.h>
#include<conio.h>
#include<string .h>
void main()
{
char name[40];
int
____ __________ _________ ________ __________ ________ ________.
_________ ________ ________ _________ __________ _____ _____ ___ _________ __________.
________ ___ _____ ________ _______ _________ _________ _____ _____ ___.
______ _____ ___ _______ __________.
______ _____ ________ ____ ____ _________ ______ ___.
__________ ______ ______ ___ _____ _____ ____ _________ ____ ____ ______.
__________ ___ ___ _______ ___ ____ _________ _________.
_________ ____ _________ _______ __________ ________ _________ ___ ______ ____ ____.
_______ _____ ____ ________ _________ _________.
___ _____ _______ ______ _________.
____ _____ ________ ____ _________ _______ ______ ______ _____ _______ ____.
__________ ___ ________ ________ _______ __________ ____ ____ _______ ____ _____ _________.
______ _______ _________ ________ ___.
___ ____ ______ ____ ________ __________ _____ ____.
_____ ______ _____ ____ ______ _________ _________ _______.
____ ________ _____ _________ _____ ______.
______ _____ _______ _____ _____ ______ ______ ___ ______ ______ __________.
_____ _____ ___.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.