Explain the difference between a sub and a function?

Answer Posted / ravi

Sub means subroutine which does not return any output
it will accept any number of parameters with no return type

Function which is having return type

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How jit (just in time) works?

508


What is parse method in c#?

450


Write a short note on interface?

580


List down the commonly used types of exceptions in .net

490


Can you pass value types by reference to a method?

519






What are console applications used for?

478


What is method and function in c#?

494


What is thread.sleep()?

514


Is xml tags are case sensitive?

480


Why do we use parameters in c#?

500


What is lazy loading and eager loading in c#?

482


Which namespaces are necessary to create a localized application?

608


When do you generally use a class over a struct?

536


What does dbml mean?

500


what is the Difference between the public and private ?

512