• difference between short and char
    Hi all, What is the difference between the data types char and short? According to the book, they are both 8 bits and have the exact same range. Thanks, Steve
  • Converting 'short' to 'unsigned char'
    Hi, I've to debug an application written by someone else (...) An 'unsigned char' is used to be filled with data from a 'short'. If I change the source 'short' variabele type (filled somewhere...
  • struct: uvision describe char as short
    I've one strange error. I define a struct with unsigned short and one unsigned char variable. typedef struct struct1{ unsigned short a; unsigned short b; unsigned char c; unsigned short d; }MsStruct;...
  • What is a short variable?
    Hi, I'm now porting a (by a former employee) RC-51 compiler developped application to the Keil ARM RealView compiler. First I need to know what variable types are used in both compilers and how...
  • making a short out of a msb+lsb char
    Hi all, I'm new to C and need a hint on an optimization problem. I have a 16 bit counter, divided into two 8bit SFRs, let's say TH0 and TL0, and I want to transfer them to a short. I could: ...