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

Why do we need collections in c#?

467


What are the 3 logical operators?

556


What is Web.config?

543


Why are local variables stored in stack?

554


Can we change static variable value in c#?

487






What is a hashset c#?

474


Are c# destructors the same as c++ destructors?

557


List the differences between method overriding and method overloading?

482


Enlist some of the properties of a thread class?

511


What is lazy class in c#?

469


What is application object in c#?

496


What is the default value of singleordefault?

490


Is c# a technology?

488


Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

482


If casting fails what type of exception is thrown?

480