Home / C# Programming / Functions and Subroutines :: Discussion

Discussion :: Functions and Subroutines

  1. If a function fun() is to receive an int, a Single & a double and it is to return a decimal then which of the following is the correct way of defining this function?

  2. A.
     decimal static fun(int i, Single j,   
     double k)
     { ... }
    B.
    decimal fun(int i, Single j, double k) { ... }
    C.
      static decimal fun(int i, Single j,   
      double k)
      { ... }
    D.
     static decimal fun(int i, Single j,  
     double k) decimal
     { ... }
    E.
     static fun(int i, Single j, double k)
     {  
        ...   
        return decimal; 
     }

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment