C
Christopher Benson-Manica
Given an enumeration something like
enum footype {
foo=3,
bar=5,
baz=17,
quux=200 };
is there a fast way to access all four of these values? I.e., given
enum footype m=foo;
printf( "%d\n", m ); /* print 3 */
/* magical things */
printf( "%d\n", m ); /* print 5 */
/* wondrous things */
printf( "%d\n", m ); /* print 17 */
....
enum footype {
foo=3,
bar=5,
baz=17,
quux=200 };
is there a fast way to access all four of these values? I.e., given
enum footype m=foo;
printf( "%d\n", m ); /* print 3 */
/* magical things */
printf( "%d\n", m ); /* print 5 */
/* wondrous things */
printf( "%d\n", m ); /* print 17 */
....