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

What are nullable types? Is Nullable<int> I and int ?i are same.

2 Answers   TCS,


Can we declare private class in c#?

0 Answers  


C# is case sensitive, what is mean by case sensitive

3 Answers  


how background thread access to ui control?

0 Answers   HCL,


What are the value types in c#?

0 Answers  






What is Wrapper class in dot net?

0 Answers   HCL,


What do you mean by stack and heap in c#?

0 Answers  


What is lazy in c#?

0 Answers  


What is the difference between hashtable and dictionary in c#?

0 Answers  


Do unused Namespaces in c# affect run-time performance?

0 Answers   HCL,


What are custom exceptions in C#?

0 Answers   Arigo Infotech,


What is the use of console application in c#?

0 Answers  


Categories