Systemnahe Programmierung in C: Sichtbarkeitsbereiche |
1int i; /* program scope */
2
3extern int i2; /* program scope */
4
5static int j; /* file scope */
6
7extern void f0 (void); /* program scope */
8
9static void f3 (double); /* file scope */
10
11extern void /* program scope */
12f1 (void)
13{
14
15}
16
17void
18f2 (int k) /* f2: program scope */
19 /* k: block scope */
20{
21 int m; /* block scope */
22
23start: /* function scope */
24 {
25 int n; /* block scope */
26 }
27}
28
29static void
30f3 (double k) /* f3: file scope */
31 /* k: block scope */
32{
33 double m; /* block scope */
34
35}
|
Letzte Änderung: 11.01.2007 | © Prof. Dr. Uwe Schmidt |