Hi all:

What is the difference between the following two C programs ?


--

#include <stdio.h>

int main(int argc, char *argv[])
{
    unsigned char uc[] = "\xFF";

    return 0;
}

--

#include <stdio.h>

int main(int argc, char *argv[])
{
    unsigned char uc[2] = { (unsigned char)(char) 0xFF, 0 };

    return 0;
}


All observations and insights are very welcome.


thanks
Saifi.

Reply via email to