Friday, December 26, 2008

What is the output of following programme ?

main()
{
char x = 0x8A;
unsigned int y = x;
printf("%d\n", y);
}
A. -118
B. 138
C. 118
D. Unpredictable

No comments: