What is the Difference between a sub and a function?

Answer Posted / alam

Function always returns a value but sub does not.

Is This Answer Correct ?    22 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please explain what is the difference between constants and read-only variables?

590


What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?

568


What is heap and what is stack?

589


What is Complex Class in .NET?

616


Explain me difference between public and static modifiers?

529






What are the important components of .net?

574


What are the new 2.0 features useful for?

647


Describe difference between inline and code-behind?

665


What is the difference between function and stored procedure?

597


What is the advantage of .net core?

558


Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component

1867


Explain about .net?

635


What is operator overloading in .net?

634


What is Event - Delegate? clear syntax for writing a event delegate

1560


Explain the different parts of an assembly?

599