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 is the best dependency injection c#?

0 Answers  


Using system; class main { public static void Main() { int a = 1; for (int i = 0; i < 10; i++) { int j = a * 5; Console.WriteLine(a + "*5=" + j); a++; } Console.ReadLine(); } }

1 Answers  


What is iqueryable?

0 Answers  


What is inumerable?

0 Answers  


What is difference between c sharp and c#?

0 Answers  






What is public, private, protected, internal and internal protected?

0 Answers   QuestPond,


What is a console file?

0 Answers  


Can you prevent your class from being inherited and becoming a base class for some other classes?

2 Answers   Mind Tree,


What is static variable in c#?

0 Answers  


Is it not possible to store a boolean value as a variable?

0 Answers  


hi all.... i need code snippets for store and retrive tiff fromat images in sqlserver....... kindy provide it.......

0 Answers   Tricom,


What is default constructor c#?

0 Answers  


Categories