What is the Difference between a sub and a function?

Answer Posted / raju chauhan

Like a Function procedure, a Sub procedure is a separate
procedure that can take arguments, perform a series of
statements, and change the value of its arguments. However,
unlike a Function procedure, which returns a value, a Sub
procedure can't be used in an expression.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is boxing and un-boxing in .net?

599


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

508


How do you turn off cookies for one page in your site? Give an example.

504


What is common language specification (cls)?

650


Describe the programming model of a windows service

552






Please tell us what is the difference between override and overload in a method?

577


How to create a key pair in .net?

580


What is difference between .net and .net core?

551


Explain about .net assemblies?

617


How can you assign an rgb color to a system.drawing.color object?

557


One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?

527


Explain the differences between server-side code and client-side code.

575


Which file is taken by compiler when we have both file Application and Server Configuration file?

1567


What is the difference between asp.net and asp?

603


Explain the difference between managed and unmanaged code?

466