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 the types of methods in c#?

0 Answers  


Why do we need a finally block in try catch block while handling exceptions

4 Answers   IBM,


What is using directive in c#?

0 Answers  


ctype(123.34,integer) - should it throw an error? Why or why not?

2 Answers   Wipro,


what is a static constructor?

0 Answers  


Explain the accessibility modifier protected internal?

0 Answers  


What does == mean in c sharp?

0 Answers  


What is internal and protected-internal accessspecifier in c#.net?

1 Answers  


What is polymorphism? pl explain practically rather than theoretical?

3 Answers  


What is the difference between function and method in c#?

0 Answers  


How do I open the console window?

0 Answers  


How to make a class non-inheritable other than sealed?

7 Answers  


Categories