Sunday, 4 January 2015

Programming Quiz-74



main()
{
signed int bit=512, mBit;

{
mBit = ~bit;
bit = bit & ~bit ;

printf("%d %d", bit, mBit);
}
}

a. 0, 0
b. 0, 513
c. 512, 0
d. 0, -513 


Answer: D

No comments:

Post a Comment