Home / C Programming / Complicated Declarations :: Discussion

Discussion :: Complicated Declarations

  1. What will be the output of the program?

    #include
     typedef void v; 
     typedef int i;
     int main()
     {   
         v fun(i, i); 
         fun(2, 3);   
         return 0; 
    }
    v fun(i a, i b)
     {    
          i s=2;   
          float i;    
          printf("%d,", sizeof(i));       
          printf(" %d", a*b*s);
     } 
    

  2. A.

    2, 8

    B.

    4, 8

    C.

    2, 4

    D.

    4, 12

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    No answer description available for this question.


Be The First To Comment