Explain the difference between a sub and a function?



Explain the difference between a sub and a function?..

Answer / 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

More C Sharp Interview Questions

What are strings in c#?

0 Answers  


How do you comment out code in c#?

0 Answers  


what happens if you inherit multiple interfaces and they have conflicting method names?

0 Answers   Siebel Systems,


What is private constructor c#?

0 Answers  


What is the use of flag in c#?

0 Answers  






If a class is a ref type, how we can pass to a function.

1 Answers   Synechron,


what is ment by Unboxing?

3 Answers  


What is polymorphism c# example?

0 Answers  


Describe ways of cleaning up objects in c#.

0 Answers  


Name some string escape sequences in c#.

0 Answers  


What?s different about switch statements in C#?

2 Answers  


what is bubbled event ? give suitable example in code vice with demo

2 Answers  


Categories