answersLogoWhite

0

In programming, a "loop" is a piece of code that is allowed to execute repeatedly until a condition is met. Under C, there are "for" and "while" loops. Other languages have "foreach" and "repeat..until" loops.

A "for" loop optionally sets a variable at a certain value, and then executes a block of code while that (and perhaps other variables) meet(s) certain conditions.

"While" loops are simpler types of loops since they only loop while a condition is met - variables are set before the "while" statement.

See the related links below for more information on looping in C.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What are the Definitions on programming?

Programming is a term that describes the usage of a programming language. Programming languages (C++ for example) are languages that create programs, these programming languages should not be confused with scripting languages. Scripting languages are languages that are meant to be interpenetrated by programs. (Written in a programming language)


What control statement exhibits a looping structure?

It depends on the programming language, however most high-level languages will provide some variant of the standard 'for' loop in addition to some variant of the 'while' and 'do-while' loop.


When was Essentials of Programming Languages created?

Essentials of Programming Languages was created in 2008-04.


How many pages does Essentials of Programming Languages have?

Essentials of Programming Languages has 416 pages.


Why do you have different Programming languages?

why do we have diffrent programming laungage


Every high-level computer programming language contains a while statement?

Due to the rather large number of high-level programming languages, it's difficult to say with absolute certainty that they all include a while statement. However, as loopingconstructs are fundamentally made up of goto's and labels, I would be pretty amazed to find one that doesn't at least provide an equivalent, particularly as looping is so common.It's interesting to note that there are some languages such as Scheme that are focused on purely functional programming. So even though looping can be done, it would most likely accomplish the same task using recursive functions instead.


What is the best website to download C programming language?

Programming languages (or natural languages) cannot be downloaded.


How many programming languages are?

Thousands! Programming languages number in the thousands, from general purpose programming languages such as C++, Java, and others, to special purpose languages which are used in one application. They can be ordered by type (structured, object-oriented, functional, etc.) or by history, or syntax. See the related list of programming languages.


What are the classification of programming languages?

Programming languages, like human languages, are defined through the use of syntactic and semantic rules, to determine structure and meaning respectively. Thousands of different programming languages have been created, and new languages are created every year.


The C programming Language free download?

Programming languages (or natural languages) cannot be downloaded.


Can characters be symbols in programming languages?

Yes, characters can be used as symbols in programming languages to represent data or instructions.


How do you install C language from a website?

You cannot install programming languages (or natural languages, either) on your computer. You can install compilers for programming languages, though.