What is the Difference between a sub and a function?

Answer Posted / kamlesh sharma

through sub keyword we define a procedure which never
return value

and function may return value

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Major difference between Basic httpbinding and WShttpbinding?

759


What are the types of assembly available

698


Why do we Need of static class in c#?

810


What is the difference between properties and indexer in c#?

605


How to find out that the code is written as managed or un-managed code?

807


what is a enumeration in c#

765


what are the contents of an assembly ?

733


What is a ienumerator?

684


We cannot create instances of static classes. Can we have constructors for static classes?

709


How to find type of variable?

741


Can a method return multiple values in c#?

621


When should I throw an exception?

759


Is arraylist thread safe?

655


Explain how is the dll hell problem solved in .net?

623


Is c# substring zero based?

683