What is the Difference between a sub and a function?

Answers were Sorted based on User's Feedback



What is the Difference between a sub and a function?..

Answer / abc

sub dose not return the value whereas function return the
value.

Is This Answer Correct ?    5 Yes 0 No

What is the Difference between a sub and a function?..

Answer / zubair khan

SUB NOT RETURN THE VALUE WHERE FUNCTION RETURN THE VALUE.

Is This Answer Correct ?    5 Yes 0 No

What is the Difference between a sub and a function?..

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

More C Sharp Interview Questions

What are the types of comments in c#?

1 Answers  


What is the usage of Enumeration in C# Programming and is it good to use or not ?

1 Answers   MCN Solutions,


How to get the sum of last 3 items in a list using lambda expressions?

1 Answers  


What is deferred execution?

1 Answers  


What is 8 bit signed integer?

1 Answers  


What is windows form in c#?

1 Answers  


Describe the parts of assembly.

1 Answers  


What to implement on my class Finalize or IDisposable

1 Answers   HCL,


Is a c# interface the same as a c++ abstract class?

1 Answers  


What are the properties of string?

1 Answers  


Which language is used for desktop application?

1 Answers  


What does an indexer do?

1 Answers  


Categories