Explain the difference between a sub and a function?



Explain the difference between a sub and a function?..

Answer / 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

More C Sharp Interview Questions

How?s method overriding different from overloading?

3 Answers  


Write code for palindrome?

10 Answers   Tech Mahindra,


Which is faster dictionary or hashtable?

0 Answers  


What is concatenation and when should it be used?

0 Answers  


Why do we need interface in c#?

0 Answers  






Why do we use interface in c#?

0 Answers  


Is array reference type / value type ?

6 Answers   Accenture, BirlaSoft,


What is a struct in C#?

0 Answers   Arigo Infotech,


Why do we use methods in c#?

0 Answers  


What is verbatim string literal in c#?

0 Answers  


How many types of variables are there in c#?

0 Answers  


How do generics work in c#?

0 Answers  


Categories