Hi Saifi
there is lot of different in two programs first will take the ascii values
of the characters and stored in array, coming to second
program  it will take ascii value of a particular character after converting
it.


thanks
snehith


On Fri, Apr 10, 2009 at 3:21 AM, Saifi Khan <[email protected]>wrote:

>
>
> 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.
>  
>


[Non-text portions of this message have been removed]

Reply via email to