C# Programming - Functions and Subroutines - Discussion
Discussion Forum : Functions and Subroutines - General Questions (Q.No. 10)
10.
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?
Discussion:
2 comments Page 1 of 1.
Vijayan said:
8 years ago
Why not?
Daniel Hursan said:
1 decade ago
Why does C) need to be the only accepted correct answer.
There is no specification of how the method should be accessed(static or object instance).
Wouldn't B) be the correct answer as well ?
There is no specification of how the method should be accessed(static or object instance).
Wouldn't B) be the correct answer as well ?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers