What is the Difference between a sub and a function?

Answer Posted / digvijay

Sub is also function but never return the value and Function
must return the value.
Function is user defined and System define but sub is
keyworlds that defined by user.

function can be macro but Sub is Not.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you trigger the paint event in system.drawing?

535


Please explain what garbage collection is and how it works. Provide a code example of how you can enforce garbage collection in .net?

552


What is the difference between encrypting a password and applying a hashing?

618


What is a .DLL and .EXE files called in .NET?

612


Is .net is a language?

575






What does il do?

573


Why SOAP is required?

684


What do you mean by web service?

659


How big is the datatype int in .net?

573


Explain me what is the difference between a class and an object, and how do these terms relate to each other?

518


How is a managed code executed?

724


What relationship is between a process, application domain, and application?

563


Is .net core managed code?

537


What are situations when you register .NET assembly in GAC ?

656


How to produce an assembly?

573