What is the Difference between a sub and a function?

Answer Posted / raju chauhan

Like a Function procedure, a Sub procedure is a separate
procedure that can take arguments, perform a series of
statements, and change the value of its arguments. However,
unlike a Function procedure, which returns a value, a Sub
procedure can't be used in an expression.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to spawn a thread?

571


What is delegation in .net?

608


Difference abstract class and interface in .net?

596


How can I find out what the garbage collector is doing?

538


What is Finalizer in .NET define Dispose and Finalize ?

573






What are the differences between user control and server control?

590


How do you generate a strong name?

596


Explain what is the difference between response.redirect & server.transfer?

548


What is the microsoft .net?

586


What is value type and refernce type in .net?

589


Which namespace is used to support multithearding in .NET?

525


What is managed code in .NET?

638


How to load the contents of an xml file into an xmldocument object?

597


Do you know what is the difference between an abstract class and an interface?

528


Explain the process of compilation in .NET?

630