Functions and Subroutines - Programming

Q1:

If a procedure 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 procedure?

A
fun(int i, Single j, double k) decimal 
{ ... }

B
static decimal fun(int i, Single j, double k) 
{ ... }

C
fun(int i, Single j, double k) 
{
    ...
    return decimal; 
}

D
static decimal fun(int i, Single j, double k) decimal 
{ ... }

E A procedure can never return a value.

ANS:E - A procedure can never return a value.

No answer description is available. Let's discuss.