• Hexadecimal Arithmetic
    I want to carry out following Hexadecimal Arithmetic operation using C code Multiplication...................................... char A[2] = { 0x01, 0x02}; char B[2] = { 0x03, 0x04}; I want...
  • comparing signed and unsigned variables
    In the following code:- char a = 0x80; unsigned char b = 0x80; if(a==0x80) printf("a==0x80\n"); if(b==0x80) printf("b==0x80\n"); The first printf isn't executed but the second is. Why is this...
  • problem comparing signed char
    hi i am trying to compare the value of two signed chars. one is a plain variable currentval while the other is a signed char inside an array of type signed char called spectrumarray.for some reason it...
  • Compile char as an unsigned char
    Hello, Can anyone tell me how to instruct Keil to compile char's as unsigned char's by default? I know that there are some help topics on this issue, but they seem to be giving a precompiler...
  • convert decimal to hexadecimal
    Hello, How can I convert decimal to hexadecimal by Keil?. such as,convert from 2185 dec. to 889 hex. thank you. hayinga