Explain the difference between a sub and a function?
Answer Posted / ravi
Sub means subroutine which does not return any output
it will accept any number of parameters with no return type
Function which is having return type
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is the meaning of MSIL?
Describe the types of comments in c#?
What is use of private class in c#?
Can we declare class as protected?
How do switch statements work?
Are c and c# the same thing?
Can we create extension method for interface?
How to open a new form on button click in Windows forms?
Is list passed by reference c#?
List the difference between the virtual method and the abstract method?
You are creating a custom usercontrol, some of the newly created properties are shown in the properties window. How you can hide a new property named theme from the properties window?
What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?
What is a cs file?
What type of data type conversion happens when the compiler encounters the following code?
Is enum a class c#?