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

Define parsing?

0 Answers  


Is c# a keyword?

0 Answers  


How to find methods of a assembly file (not using ILDASM)?

0 Answers  


Is and as keyword in c# net?

0 Answers  


How do you specify a custom attribute for the entire assembly?

0 Answers  






Can a static class contain non static members?

0 Answers  


When static constructor is invoked?

9 Answers   TCS,


When was c# created?

0 Answers  


Why is lazy loading?

0 Answers  


Does the system.exception class have any cool features?

0 Answers  


Why do we need indexer in c#?

0 Answers  


What is generic collection in c#?

0 Answers  


Categories