1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of Loop

By David Bolton, About.com

Definition: A loop is a way of repeating a statement a number of times until some way of ending the loop occurs. It might be run for a preset number of times, typically in a for loop, repeated as long as an expression is true (a while loop) or repeated until an expression becomes false in a do while loop.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Examples: All loops can be rewritten as while loops.

Explore C / C++ / C#

More from About.com

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. Glossary
  5. L
  6. Loop - Definition

©2008 About.com, a part of The New York Times Company.

All rights reserved.