Which of the following function gives the current position of the file pointer?*1 pointfseek()ftell()rewind()fread()
Question
Which of the following function gives the current position of the file pointer?*1 pointfseek()ftell()rewind()fread()
Solution
The function that gives the current position of the file pointer is ftell().
Similar Questions
Which of the following functions changes the position of file pointer andreturns its new position?
In C++, when accessing files randomly, which function is used to get current pointer position inside a file?
What does fp point to in the program ? #include<stdio.h> int main() { FILE *fp; fp=fopen("trial", "r"); return 0; } ans. The name of the file. The first character in the file A structure that contains a char pointer that points to the first character of a file. The last character in the file.
The process of getting the value that is stored in the memory location pointed to by a pointer is called:PointingAccessingCastingDereferencin
Select the correct answerWhat is the use of seek() method in files?Optionssets the file’s current position at the offsetsets the file’s current position within the filenone of the mentionedsets the file’s previous position at the offset
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.