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


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 are subroutine linkages?

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


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

Trending Questions
What are rules for subpoena service in Sarasota County FL? What info do you have on being extradited to Florida on felony charges? What branch of the us government is responsibal for crying out laws? Where in the world can a 35 year old man marry a 13 year old girl? In Ohio can a 16-year-old choose to live with a grandparent? What factors determine which jurisdiction has the authority to handle a divorce case? Why should an inheritance be disclosed to a trustee after the tax year has passed but before the bankruptcy is discharged? If you have a CDL license but no over the road experience how do you get it? How much can your earn per year when you retire at 62? Is Washington University in St. Louis a good Pre-Medicine College? When a person dies intestate who files for probate? What is the significance of the 90-day waiting period for divorce and how does it impact the process of legally ending a marriage? Can the custodial parent deny visitation to the non custodial parent in Washington? Crime in the UK can police charge you at home? What document clarifies how partners will share profits and losses? What mean of flashing and quenching? What happens when the plantiff doesn't show up to court when thet owe you money from an apartment? If the father is not on the birth certificate does the mother have sole custody unless the father wants paternity proven? If your husband is being sued can they go after anything that you have jointly or that is in your name alone? What are some ancient Japanese torture methods?