Is there a one-liner that lets me output the current value of an enum?
enum A { foo, bar } a; a = foo; printf( "%d", a ); // see comments below