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

Why do we need ienumerable in c#?

0 Answers  


Can a structure inherit a class.

3 Answers   Infosys, Synechron,


Is goto statement supported in C#? How about Java?

2 Answers  


What is yield return in c#?

0 Answers  


Why can’t struct be used instead of class for storing entity?

0 Answers  


What are constructors in c#?

0 Answers  


What is the difference between null and string empty in c#?

0 Answers  


Which is the best language for desktop application?

0 Answers  


Why static constructor is parameterless in c#?

0 Answers  


C# Code for How to set readonly property to Id(database) value?

2 Answers   HCL,


What does the keyword virtual mean in the method definition?

3 Answers   Ipog Software, Satyam, Visual Soft,


What are circular references? How garbage collection deals with circular references.

0 Answers  


Categories