answersLogoWhite

0

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.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Difference between subroutine and function?

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.


What is different between a subroutine and function in vb.net?

Function returns a value but sub procedure do not return a value.


What is the difference between program and procedure?

A procedure is a subroutine that can be called from another part of the program. Procedures can be as small as 2 lines (the definition line, and then the procedure itself), or consist of hundreds of lines.


When a function does not return a value what kind of function is it called?

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.


What is the difference between a function and Procedure?

Girraf


Difference between delay subroutine and ordinary subroutine in context of 8085?

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


What is main difference between macro and subroutins?

marco expand where it invoked ,subroutine will go where the subroutine is defined....


Difference between interrupt and subroutine in computer?

interrupt is a signal caused by I/O devices where as subroutine is a part of the program which is excuted rapidly


Difference between sql function and sql procedure?

Function is must be return the value but procedure cannot be returned, for more information please visit the link : http://youropensource.com


What are subroutine linkages?

The Mechanism that makes possible to transfer control between the calling program and Subroutine is reffered to as SUBROUTINE LINKAGE


Difference between procedural programming and modular programming?

Procedural programming is a computer programming technique in which the program is divided into modules like function or subroutine or procedure or subprograms, where as ... "Modular Programming" is the act of designing and writing programs as interactions among functions that each perform a single well-defined function, and which have minimal side-effect interaction between them. Put differently, the content of each function is cohesive, and there is low coupling between functions as happens in procedural programming.


What is the difference between the Burch procedure and the Marshall-Marchetti-Krantz procedure?

The major difference between these procedures is the method for supporting the bladder