Sunday, 4 January 2015

Programming Quiz-71



main()
{
signed int bit=512, i=5;

for(;i;i--)
{
printf("%d\n", bit >> (i - (i -1)));
}
}

a. 512, 256, 0, 0, 0
b. 256, 256, 0, 0, 0
c. 512, 512, 512, 512, 512
d. 256, 256, 256, 256, 256 


Answer: D

No comments:

Post a Comment