Q:

WHAT IS FILE POINTER IN C?

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

0

WHAT IS FILE POINTER IN C?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

File pointer is a pointer which is used to handle and keep track on the files being accessed. A new data type called “FILE” is used to declare file pointer. This data type is defined in stdio.h file. File pointer is declared as FILE *fp. Where, ‘fp’ is a file pointer.

fopen() function is used to open a file that returns a FILE pointer. Once file is opened, file pointer can be used to perform I/O operations on the file. fclose() function is used to close the file.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C INTERVIEW QUESTIONS AND ANSWERS

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
WHEN CAN VOID POINTER AND NULL POINTER BE USED IN ... >>
<< WHAT IS WILD POINTER IN C?...