Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

enum, #define, const

Name: Anonymous 2009-03-28 7:01

For storing integers with bitwise operands inside their declaration, which should I use? Performance wise I think that an enumeration works slightly faster, however what's the standard?

Name: Anonymous 2009-03-28 13:14

>>1
storing integers with bitwise operands inside their declaration
am i envisioning this correctly?

// shift in declaration
#define ONE 1>>1



if so, then i'd use a const int or typedef enum since either of those will enforce ``types-safety''.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List