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

What is an assembly? What are the different types of assemblies?

602


How will you load an assembly which is not referenced by current assembly?

556


What is data type and how many types of data types are in .NET ?

562


Explain about .net assemblies?

623


What is an anonymous method?

543






How server form post-back works?

587


Explain what is a manifest in .net?

578


Which dll translate xml to sql in internet information server (iis)?

591


Explain attributes in dot net?

579


Please explain what is immutability, what is it for and how is it codified?

542


Explain the top .net class that everything is derived from?

564


What is lambda expressions in c#?

613


What are the different.net tools which you used in projects?

553


What's the use of system.diagnostics.process class in .net?

590


hai, about trading domain and need simple project on trading system. please help me...

1580