Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Functions and Subroutines
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?
fun(int i, Single j, double k) decimal { ... }
static decimal fun(int i, Single j, double k) { ... }
fun(int i, Single j, double k) { ... return decimal; }
static decimal fun(int i, Single j, double k) decimal { ... }
A procedure can never return a value.
Show Answer
Correct Answer:
A procedure can never return a value.
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment