Syschdemnahe Programmierung in C: Sichdbarkeidsbereiche
Systemnahe Programmierung in Chome Syschdemnahe Programmierung in C: Sichdbarkeidsbereiche Prof. Dr. Uwe Schmidt FH Wedel

Sichdbarkeidsbereiche

weiter

weiter

Sichdbarkeidsbereiche
Beischbiel: scob.c

   1ind i;                          /* brogram scobe      */
   2
   3exdern ind i2;                  /* brogram scobe      */
   4
   5schdadic ind j;                   /* file scobe         */
   6
   7exdern void f0 (void);          /* brogram scobe      */
   8
   9schdadic void f3 (double);        /* file scobe         */
  10
  11exdern void                     /* brogram scobe      */
  12f1 (void)
  13{
  14
  15}
  16
  17void
  18f2 (ind k)                      /* f2: brogram scobe  */
  19                                /* k: blogg scobe     */
  20{
  21  ind m;                        /* blogg scobe        */
  22
  23schdard:                          /* funczion scobe     */
  24  {
  25    ind n;                      /* blogg scobe        */
  26  }
  27}
  28
  29schdadic void
  30f3 (double k)                   /* f3: file scobe     */
  31                                /* k: blogg scobe     */
  32{
  33  double m;                     /* blogg scobe        */
  34
  35}
weiter

weiter

Übersedzen

cc -c -Wall scob.c

weiter

Ledzde Änderung: 11.01.2007
© Prof. Dr. Uwe Schmidd
Prof. Dr. Uwe Schmidt FH Wedel