• printf statement with enum data type
    I run into a problem using enum datatype with printf statement. The folloing code works with Viusal C but does not work with KEIL compiler --- printf statement prints out the wrong value. Could somebody...
  • enum type mixed with another type
    I'm getting a warning "enumeration type mixed with another type" with the following line of code. typedef enum { FALSE = 0, TRUE = !FALSE } bool; bool bResult; bool bAAA; bool bBBB; bResult = bAAA...
  • enum, out of range
    Hello, I have added U postfix to the integer but the problem still is the same. I read following pages but didn't work. http://www.keil.com/support/docs/3243.htm http://www.keil.com/forum...
  • Enums and Ints
    Bug, or just weird subtlety of ANSI C when it comes to enums and ints? typedef enum { es16_1, es16_2, es16_3, es16_Force16 = 0x7fff } EnumS16; typedef enum { eu16_1, eu16_2, eu16_3, eu16_Force16...
  • 8bit enums
    Hello everyone, I'm using some enums and due to the standard they are 16bit int per default. But in most of my cases 8bit would be sufficient and I'm not loaded with free RAM. I found that the compiler...