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

Compare client server application with n-tier application

519


Is .net capable of supporting multi-thread?

584


Explain what inheritance is, and why it's important?

508


Explain boxing and unboxing in .net.

573


Explain the code behind wors and contrast that using the inline style.

567






State the various features present in .NET?

604


What are the features of dot net?

540


What is the purpose of IClonable interface in .NET?

606


Describe difference between inline and code-behind?

655


Difference abstract class and interface in .net?

610


What is jit compilers?

579


What is the use of immutability?

610


What is a web service in .net?

589


Please explain what is the difference between a class and an object?

580


How does u handle this COM components developed in other programming languages in .NET?

1678