What is the Difference between a sub and a function?
Answer Posted / bart calixto
yeah, sure.. everyone says that but...
what's the purpose of sub.?
I can do a function
Function ThisIsASub()
write "HELLO WORLD"
end Function
wow! I have a sub now.
so, besides the stupid reason that sub don't return value, what's the point of using subs?
If like someone create a newIF but it doesn't support ELSE... what's the point?
Greetings,
Bart.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?
Please explain what do the terms “boxing” and “unboxing” mean?
What is garbage collection and how it works. Provide a code example of how you can enforce garbage collection in .net?
What's typical about a windows process in regards to memory allocation in .net?
Explain security measures exist for .net remoting in system.runtime.remoting?
Do you know what's the difference between .net and laravel?
What tools is used to develop .NET applications?
How anonymous method is different from a lambda expression?
What's the .net collection class that allows an element to be accessed using a unique key?
Explain why do we use msmq?
What does msil do?
Describe the Managed Execution Process
How will you register com+ services?
Explain what do the terms “boxing” and “unboxing” mean?
What is il and c#?