What is the Difference between a sub and a function?

Answer Posted / m. aqueel

Sub keyword is used for the procedures and procedures never
return a value where function key word is used for function
and function returns a value that can be assign to any
variable.

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hai, about trading domain and need simple project on trading system. please help me...

1576


Write Code for DataSet,Datareader,and by deleting the button gridview should be empty?

1622


What is the difference between user control an custom control? Advantages/disadvantages?

577


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

552


Define satelite assembly?

569






What is machine.config in .net?

577


What are pdbs?

590


Can I write il programs directly?

571


which methos do you invoke on the dataadapter control to load your generated dataset with data?

557


Write the .net syntax for 'while loop'?

588


What is garbage collection in .net? Explain the garbage collection process?

572


What is the procedure to add assemly to gac to make it shared one?

519


What is .net latest version?

552


Explain why do we use msmq?

560


Explain me what is a design pattern and what is it for?

585