Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include <stdio.h>
  2.  
  3. enum fred { a, b, c };
  4.  
  5. int main()
  6. {
  7.    printf("a=%d\n", a);
  8.    printf("b=%d\n", b);
  9.    printf("c=%d\n", c);
  10.  
  11.    enum fred d;
  12.  
  13.    typedef enum { e, f, g } h;
  14.    typedef enum { i, j, k } m;
  15.  
  16.    printf("e=%d\n", e);
  17.    printf("f=%d\n", f);
  18.    printf("g=%d\n", g);
  19.  
  20.    printf("i=%d\n", i);
  21.    printf("j=%d\n", j);
  22.    printf("k=%d\n", k);
  23.  
  24.    return 0;
  25. }
  26.  
  27. /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/
  28.