What is the Difference between a sub and a function?

Answer Posted / m. aqueel

Sub keyword is used for the procedures and procedures never
return a value where function key word is used for function
and function returns a value that can be assign to any
variable.

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of design patterns available in .NET?

603


Can you explain what do you understand about web service?

604


How do you define the lease of the object in .net?

556


Interop Services?

1456


What are the differences between com architecture and.net architecture?

553






What are the new 2.0 features useful for?

633


Explain what are possible implementations of distributed applications in .net?

534


Does .net supports destructors concept?

1623


What does jit compilation do in .net?

576


What is .net3.0 and .net3.5?

557


Differences between dll and exe?

600


Explain what are the deferred execution and the immediate execution in linq?

572


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

553


What is close method? How its different from finalize and dispose?

525


Do you know what is garbage collector?

576