What is FILE pointer in c programming language?

FILE pointer is struct data type which has been defined in standard library stdio.h. This data type points to a stream or a null value. It has been defined in stdio.h as

typedef struct{
    short          level;
    unsigned       flags;
    char           fd;
    unsigned char  hold;
    short          bsize;
    unsigned char  *buffer, *curp;
    unsigned       istemp;
    short          token;
} FILE;

4 comments:

techfied said...

yes, but what is the difference between file and ordinary pointer and suppose if i want to use file pointer like a memory pointer is that possible ?

Unknown said...

Good job

NAVEEN KUMAR said...

What is the default file pointers of a program

jha_piyush said...

What Is the purpose of file pointer