Home / C Programming / Functions :: Discussion

Discussion :: Functions

  1. What will be the output of the program?

    #include 
     
     int addmult(int ii, int jj)
     {    
         int kk, ll;    
         kk = ii + jj;     
         ll = ii * jj;    
         return (kk, ll); 
     }
    
    int main()
    {    
        int i=3, j=4, k, l;  
        k = addmult(i, j);   
        l = addmult(i, j);   
        printf("%d %d\n", k, l);   
        return 0; 
    }
    

     

  2. A.

    12 12

    B.

    No error, No output

    C.

    Error: Compile error

    D.

    None of above

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment