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

Discussion :: Functions - C++

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

      #include
      double GateFunction(double, double= 0,  
      double = 0, double = 0);
      int main()
      {    
          double d = 2.3;  
          cout7) " ";     
          cout7, 6)       return 0;
      } 
          double GateFunction(double x, double p, double q, double r, double s)
     {  
         return p +(q +(r + s * x)* x) * x; 
     }
    

  2. A.

    7 20

    B.

    7 19.8

    C.

    7 Garbage

    D.

    7 20.8

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    No answer description available for this question.


Be The First To Comment