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 does Dispose method do with the connection object?

2 Answers  


Explain About friend and Protected friend

0 Answers  


How many types of constructors are there in c#?

0 Answers  


Why do I get an error (cs1006) when trying to declare a method without specifying a return type?

0 Answers  


What is a long in c#?

0 Answers  






What is the difference between abstract and abstraction?

0 Answers  


Can we change static variable value in c#?

0 Answers  


What are the types of comments in c#?

0 Answers  


What is null propagation c#?

0 Answers  


What does break do in loop?

0 Answers  


Describe a Struct ?

0 Answers   Siebel,


What?s the difference between the Debug class and Trace class?

2 Answers  


Categories