• How can I convert from unsigned int to double so that I can use the sqrt function?
    Hi guys, this may seem like a newbie type of question but i'm really stumped on this one. I want to use the sqrt() function from math.h on two variables which are unsigned int. if i do: unsigned...
  • How can I convert from unsigned int to double so that I can use the sqrt function?
    Hi guys, this may seem like a newbie type of question but i'm really stumped on this one. I want to use the sqrt() function from math.h on two variables which are unsigned int. if i do: unsigned...
  • No error when converting unsigned char to pointer?
    I just noticed that my Keil C compiler doesn't flag assignment of an unsigned char to a pointer as an error: unsigned char xdata *src; unsigned char xdata array[10]; src = array[0]; This doesn...
  • No error when converting unsigned char to pointer?
    I just noticed that my Keil C compiler doesn't flag assignment of an unsigned char to a pointer as an error: unsigned char xdata *src; unsigned char xdata array[10]; src = array[0]; This doesn...
  • HELLO.C(894): warning C40: 'unsigned char' converted to pointer
    In the next code I receive the compiler error: HELLO.C(894): warning C40: 'unsigned char' converted to pointer My code: #include <71x_lib.H> #include <stdio.h> #include <stdlib.h> #include...