Library Functions

Q1: ftell() returns the current position of the pointer in a file stream.

A True

B False

ANS:A - True

The ftell() function shall obtain the current value of the file-position indicator for the stream pointed to by stream. Example:


#include <stdio.h>

int main(void)
{
	FILE *stream;
	stream = fopen("MYFILE.TXT", "w+");
	fprintf(stream, "This is a test");
    printf("The file pointer is at byte %ld\n", ftell(stream));
    fclose(stream);
    return 0;
}



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.