Home / C Programming / Input / Output :: Discussion

Discussion :: Input / Output

  1. What does fp point to in the program ?

    #include 
     int main() 
     {   
       FILE *fp;   
       fp=fopen("trial", "r");   
       return 0; 
     } 

     

  2. A.

    The first character in the file

    B.

    A structure which contains a char pointer which points to the first character of a file.

    C.

    The name of the file.

    D.

    The last character in the file.

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The fp is a structure which contains a char pointer which points to the first character of a file.


Be The First To Comment