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

Discussion :: Functions - C++

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

     #include const double GateConstant(const cons0);
     int main()
     {    
         const int c = 2 ;   
         cout10)" ";      
         cout20)     return 0;
     }
     const double  Gateconstant(const int x, const int y)
     {    
       return( (y + (y * x) * x % y) * 0.2); 
     }
    

  2. A.

    The program will print the output 2 4.

    B.

    The program will print the output 20 40.

    C.

    The program will print the output 10 20.

    D.

    The program will print the output 20 4.50.

    E.

    The program will report compile time error.

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment