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

Can we maintain state in webservice?

0 Answers  


What is a type c#?

0 Answers  


What is getenumerator?

0 Answers  


In how many ways you can overload a method?

0 Answers   Siebel,


What is the difference between yield and return?

0 Answers  






What are callback methods in c#?

0 Answers  


Why cannot you specify the accessibility modifier for methods inside the interface?

0 Answers  


How many bytes is a char c#?

0 Answers  


Write a functin to add two no. Both no can be int, float.

3 Answers   HCL,


What is as keyword in c#?

0 Answers  


What are generics in c#.net?

0 Answers  


Why c# is called c sharp?

0 Answers  


Categories