Jump to content

Subroutine

From Simple English Wikipedia, the free encyclopedia
Revision as of 11:17, 16 October 2024 by Tanbiruzzaman (talk | changes) (Reverted edits by 213.81.69.28 (talk) to last version by ChenzwBot: reverting vandalism)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In computer programming, a subroutine is a code that is comprised of more codes — just like everything in programming — its purpose is the same: execute an instruction/command. Because subroutines are shorter, they can be typed faster and therefore be used more by programmers, hence saving time by being able to code faster.

Subroutines are commonly paired with parameter, a type of variable that will stop all "willys from being seen"