Question: What is The Difference Between a Sub-Procedure and a Function?
Answer: Both a Sub-Procedure and a Function are very similar. The only difference is that you may use a Function on the right side of an equation like you would a Cos( ) function or number.
Question:
What is The Difference Between a Sub-Procedure and a Function? Answer:
Both a Sub-Procedure and a Function are very similar. The only difference is that you may use a Function on the right side of an equation like you would a Cos( ) function or number. Source: CoolInterview.com
function will return a value ex-fun()
{
} return value; but sub-procedure will not return a value Source: CoolInterview.com