Home / C Programming / Input / Output :: General Questions

C Programming :: Input / Output

  1. Consider the following program and what will be content of t?

    #include 
     int main() 
     {      
        FILE *fp;  
        int t;   
        fp = fopen("DUMMY.C", "w");    
        t = fileno(fp);    
        printf("%d\n", t);     
        return 0; 
     } 
    

  2. A.

    size of "DUMMY.C" file

    B.

    The handle associated with "DUMMY.C" file

    C.

    Garbage value

    D.

    Error in fileno()

    View Answer

    Workspace

    Discuss Discuss in Forum