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 is Interface Polymorphism?with E.g

1 Answers  


Can we inherit sealed class in c#?

0 Answers  


How do I unload an assembly?

0 Answers  


What does mean before a string in c#?

0 Answers  


Is a valid int value?

0 Answers  






Can we override interface methods in c#?

0 Answers  


What is difference between array and collection?

0 Answers  


What can we do to handle multiple exceptions?

0 Answers   Accenture,


What is covariance and contravariance? Did Delegate and method overriding support these?

1 Answers   TCS,


What is the difference between as and is operators in c#?

0 Answers  


What happens in synchronisation?

2 Answers   Tech Mahindra,


What is short circuit logical evaluation?

1 Answers   TCS,


Categories