Home / C++ Programming / Functions - C++ :: Discussion

Discussion :: Functions - C++

  1. What will be the output of the following program?

     #include
     long GateFunction(int x, int y = 5, float z = 5) 
     {   
          return(++x * ++y + (int)++z); 
     } 
     int main() 
     {   
        cout20, 10);     
        return 0;
     }
    

  2. A.

    237

    B.

    242

    C.

    240

    D.

    35

    E.

    The program will report error on compilation.

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment