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

Discussion :: Functions - C++

  1. Which of the following statement is correct about the program given below

     #include
     int GateTest(int x, int y);
     int GateTest(int x, int y, intz=5);

      int main()

     {
    cout2, 4)

    return 0;

    }

    int GateTest(int x, int y)

    {

       return x * y; }

      int GateTest(int x, int y, int z = )   {

      return x * y * z;

    }

     

  2. A.

    The program will print the output 5.

    B.

    The program will print the output 8.

    C.

    The program will print the output 40.

    D.

    The program will report compile time error.

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    No answer description available for this question.


Be The First To Comment