answersLogoWhite

0

When the same process needs to be carried out at several different stages in a programme - particularly if with different inputs.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

Why would you use subroutine?

use them whenever u like


You need to understand a subroutine's in order to use it?

You need to understand a subroutine's ____ in order to use it. a. internal structure b. local variables c. programming style d. interface


What is subroutine in java?

Subroutine mean what (in java)?


What is subroutine?

Subroutine is an instruction sequence in a machine or assembly language program that can be prewritten and referred to as often as needed. Subroutine is used for controlling thing e.g. traffic lights burglar alarms they all use subroutine


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 subroutine in 8085?

in 8085 microprocessor a subroutine is a separate program written aside from main program ,this program is basically the program which requires to be executed several times in the main program. the microprocessor can call subroutine any time using CALL instruction . after the subroutine is executed the subbroutine hands over the program to main program using RET instruction.


Why may you recommend the use of a macro instead of a subroutine inside a loop in a program?

A subroutine call generates additional work for the hardware to perform when activated. A macro in general does not call a subroutine but rather puts the commands in-line inside the loop, resulting in a faster program.


What are the variables of a subroutine?

In a subroutine, the primary variables are parameters and local variables. Parameters are the inputs passed to the subroutine, allowing it to process specific data. Local variables are declared within the subroutine and are used for temporary storage of data during execution, remaining inaccessible outside the subroutine's scope. Together, these variables facilitate the subroutine's functionality and data manipulation.


Write a program to introduce a time delay using subroutine?

go and have agud sleep


Which VBScript statement below is an appropriate call of a Subroutine called displayResults?

To call a Subroutine named displayResults in VBScript, you would simply use the statement Call displayResults. Alternatively, you could also call it without the Call keyword by just using displayResults. Both methods are valid for invoking the subroutine.


Mention the importance of subroutines in programming?

A subroutine is typically defined as being a function or procedure that can be invoked at any point in a program, causing the procedural execution to branch to the subroutine. This is not unlike a goto or jump statement, however subroutines also make use of the program's call stack to allow values (arguments or parameters) to be passed to the subroutine, including the address of the caller so that execution can return to the point of the call when the subroutine falls from scope. A subroutine can also (optionally) return a single value to the caller, known as the return value. Return values are temporary and will fall from scope when the expression that invoked the subroutine falls from scope. However, by assigning a subroutine to a variable, the return value can be stored in that variable and can then used in subsequent expressions. Subroutines pop their arguments from the stack and construct local variables or references from the argument values. Arguments passed by reference can therefore be used to return values through the referenced values. Values returned in this manner are known as output arguments. Subroutines that use output arguments often use the subroutine's temporary return value to indicate any errors that occurred within the subroutine, with zero indicating success (no error).


What are subroutines?

In computer programming, a subroutine is an identified sequence of instructions with a start and an end point which may be invoked from another part of the program. When a subroutine is called, the processor executes the instructions until it reaches the end of the subroutine, at which point control is returned to the point in the program immediately following the call. In most programming languages, a set of conventions are followed which allow values to be passed into the subroutine and for a result to be returned, so that the subroutine can be used in many different contexts. This is the most basic form of reusable software. In higher-level languages, functions and methods are specialized forms of subroutines.