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

Why use a singleton instead of static methods?

0 Answers  


What is an extension method in c#?

0 Answers  


What is scope c#?

0 Answers  


How to open a new form on button click in Windows forms?

0 Answers   Viscus Infotech,


Can you have parameters for static constructors?

0 Answers  


List the fundamental oop concepts?

0 Answers  


what are the differences b/w structure and class?

10 Answers  


What is namespace give the example?

0 Answers  


What?s a delegate?

8 Answers   CTS, Visual Soft,


write a C# Program add two matrix ?

0 Answers   Wipro,


What is the difference between protected and protected internal?

5 Answers   Fulcrum Logic,


What is boxing and unboxing in c#?

0 Answers  


Categories