Subroutine - Technology Forum - Home Theater, Computer, Televisions, Personal Electronics and more!
Technology Forum -  Home Theater, Computer, Televisions,  Personal Electronics and more!  
Go Back   Technology Forum - Home Theater, Computer, Televisions, Personal Electronics and more! > Computer Discussion > Laptops
User Name
Password


Reply
 
LinkBack Thread Tools Display Modes
Old 08-05-2006, 03:00 AM   #1 (permalink)
Banned
 
Join Date: Jul 2006
Referrals: : 0
Posts: 2,234
Points: 396,563.74
Bank: 0.00
Total Points: 396,563.74
Default Subroutine

In computer science, a subroutine (function, method, procedure, or subprogram) is a portion of code within a larger program, which performs a specific task and is relatively independent of the remaining code.A subroutine is often coded so that it can be executed ("called") several times and/or from several places during a single execution of the program, possibly even by itself. Mainly because of this feature, subroutines are a powerful programming tool. Judicious use of subroutines (for example, through the structured programming approach) will often subtantially reduce the size and cost of a program, while improving its readability and reliability. Subroutines, often collected into libraries, are an important mechanism for sharing and reusing code.
technoguy is offline   Reply With Quote
Old 08-08-2006, 02:12 AM   #2 (permalink)
Senior Member
 
Join Date: Jul 2006
Referrals: : 0
Posts: 416
Points: 29,807.71
Bank: 0.00
Total Points: 29,807.71
Smile

In short, an independent program segment separate from the main program that performs a specific task. Subroutines are called from the main program with the GOSUB statement and must end with a RETURN statement.
savvytechno is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 15.00
Points Per Reply: 5.00


» Links

» Links


Football Forum | Basketball Forum | Hockey Forum | Baseball Forum | Soccer Forum | Golf Forum | Lacrosse Forum
Wrestling Forum | Boxing Forum | MMA Forum | Paintball Forum | Snowmobile Forum | Snowboarding Forum | PWC Forum


Copyright (C) Verticalscope Inc Search Engine Optimization by vBSEO 3.3.2