• 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...
  • 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 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 question
    These code snippets come from a Dhrystone test we are using to evaluate ARM MDK and some ARM devices. The program works well but I have run across a construct that I do not understand. I hope some of...