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

∙ 16y 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
Is it legal to hit the birdie after it bounced one time? How long do employers in Wisconsin have to keep job applications? Why do people say no offense right before they offend you? A Privacy Impact Assessment (PIA) is an analysis of how information is handled hipaa? In what sense are individual rights relative to each other? What types of protections are available to protect cell phones from attackers? Why don't courts and lawyers want people to testify against themselves? What is the title of the leader of the House of Representatives and how are they chosen? Does Anyone who writes a book has copyright protection in every country in the world? Is it legal for a long stick to have its stick butt up in the air during a clamp? How do death qualified jurors differ from regular jurors? Can a person file for financial power of attorney only? What was the establishment clause in the 1st amendment? If your minor son gets someone pregnant are your responsible for child support? How much does a quad bike cost? What is the legal definition of a child? Is the new spouse's income used to figure child supoprt if the ex spouse chooses not to work. Also how is child support effected if the parent is laid off? How do you adopt your wife's 13-year-old daughter if her father has never seen her and does not pay any child support and the only thing that connects her to him is his name on the birth certificate? What us state has the most kidnappings? What is the scientific study of the causes and prevention of crime and rehabilitation of offenders?