Topic List

Click a topic to learn more.


Term of the Moment

bcc


Look Up Another Term


Definition: for statement


A high-level programming language structure that repeats a series of instructions a specified number of times. It creates a loop that includes its own control information. The following BASIC and C examples print "Hello" 10 times:

 BASIC             C

 for x=1 to 10     for (x=0; x<10; x++)
  print "hello"     printf ("hello\n");
 next x