Home / C Programming / Functions :: Discussion

Discussion :: Functions

  1. What will be the output of the program?

    #include
     int fun(int);
     int main() 
     {   
       float k=3;    
       fun(k=fun(fun(k)));  
       printf("%f\n", k);   
       return 0; 
     } 
     int fun(int i) 
     {    
        i++;  
        return i; 
     } 

     

  2. A.

    5.000000

    B.

    3.000000

    C.

    Garbage value

    D.

    4.000000

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment