Both A function and a Sub carry out a procedure, but only A function returns a result while a Sub does not return a result.
Both a function and a subroutine are examples of out-of-line execution calls to code. The main difference is that a function call can be part of an expression and returns a value, whereas the subroutine can be called standalone and does not return a value.
a subroutine is a portion of the code within a larger program which performs a specific function and is independent of remaining code.....delay routines are subroutines used for maintaining the timings of various operations in microprocessor
marco expand where it invoked ,subroutine will go where the subroutine is defined....
interrupt is a signal caused by I/O devices where as subroutine is a part of the program which is excuted rapidly
Function returns a value but sub procedure do not return a value.
A call to a subroutine. A subroutine is a named/labeled set of commands.
* Function * Subroutine * Procedure
The Mechanism that makes possible to transfer control between the calling program and Subroutine is reffered to as SUBROUTINE LINKAGE
In most computer languages, a procedure that returns a value is called a function and a procedure that does not return a value is called a subroutine or subprogram. Usually the languages treat the passing of arguments/parameters differently between functions and subroutines. The C language does not distinguish between them. A subroutine that does not return a value is define as a "void" function indicating that no return value is used or available.
A function is essentially a subroutine that is ment to be used by other subroutines.
fundamental difference between a polynomial function and an exponential function?
gffg