|
|
1.1 root 1:
2:
3: do C Keyword do
4:
5:
6:
7:
8: Introduce a loop
9:
10:
11: do is a C control statement that introduces a loop. Unlike for
12: and while loops, the condition in a do loop is evaluated after
13: the operation is performed. do always works in tandem with
14: while; for example
15:
16:
17: do {
18: puts("Next entry? ");
19: fflush(stdout);
20: } while(getchar() != EOF);
21:
22:
23: prints a prompt on the screen and waits for the user to reply.
24: The do loop is convenient in this instance because the prompt
25: must appear at least once on the screen before the user replies.
26:
27: ***** See Also *****
28:
29: break, C keywords, continue, while
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.