Q.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?

  • decimal static fun(int i, Single j, double k)
    { ... }
  • decimal fun(int i, Single j, double k)
    { ... }
  • static decimal fun(int i, Single j, double k)
    { ... }
  • static decimal fun(int i, Single j, double k) decimal
    { ... }
  • static fun(int i, Single j, double k)
    { 
        ... 
        return decimal;
    }
0 h : 0 m : 1 s