38 Computer -- Modular Programming

Mention any two differences between ‘sub procedure’ and ‘function procedure’.

Mention any two differences between ‘sub procedure’ and ‘function procedure’.

SUB procedure FUNCTION procedure
A SUB procedure is a small, logical and functional part of a program that doesn't return any value to the calling module. A FUNCTION procedure is a small, logical and functional part of a program that returns a value to the calling module.
We print in sub module in this procedure. We print in main module in this procedure.

More questions on Modular Programming

Close Open App