source: doc/theses/jiada_liang_MMath/test20.cfa @ d1276f8

Last change on this file since d1276f8 was 1725989, checked in by Peter A. Buhr <pabuhr@…>, 5 months ago

add enumeration test programs for different programming languages

  • Property mode set to 100644
File size: 184 bytes
Line 
1int main() {
2//      enum { X = 3, Y = 3.5 };
3//      enum(char *) { Z = "abc" };
4        enum { X = 3, Y = 3.5, Z = "abc" };
5
6        int i = X;
7        double d = Y;
8        printf( "%g\n", d );
9        const char * str = Z;
10}
Note: See TracBrowser for help on using the repository browser.