Question
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.
A procedure can never return a value.
Posted under C# programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. 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?
Similar Questions
Discover Related MCQs
Q. A function returns a value, whereas a subroutine cannot return a value.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C# programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!