From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/SYNTAX/do.html | 81 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 reference/C/SYNTAX/do.html (limited to 'reference/C/SYNTAX/do.html') diff --git a/reference/C/SYNTAX/do.html b/reference/C/SYNTAX/do.html new file mode 100644 index 0000000..da05f59 --- /dev/null +++ b/reference/C/SYNTAX/do.html @@ -0,0 +1,81 @@ +The DO keyword. + + + + +
+

The DO keyword.

+
+The do keyword performs a simular function to +while. Basicaly, it repeats a block of statements. +Here is an example of the syntax: +
+        main()
+        {
+          int i=5;
+
+          do
+          {
+            printf(" i is %d\n", i);
+          }
+          while(--i);
+        }
+
+
+ +The program result will look like this: +
+ 		i is 5
+ 		i is 4
+ 		i is 3
+ 		i is 2
+ 		i is 1
+
+The main difference between do and while is +the time that expression is evaluated. + +
+

Examples:

+ + +Basic do. +
+ +
+

See also:

+ + +

+ +


+

+

+ + + + +
+ Top + + Master Index + + Keywords + + Functions +
+
+

+


+
Martin Leslie +

+ + -- cgit v1.2.3-54-g00ecf