What does the following 'C' program do?
main ()
{
unsigned int num;
int i;
scanf("%u", & num);
for(i=0;i<16;i++)
Printf("%d",(num<<i&1<<15)?1:0);
}
The following 'C' program do.
main ()
{
unsigned int num;
int i;
scanf("%u", & num);
for(i=0;i<16;i++)
Printf("%d",(num<<i&1<<15)?1:0);
}
Ans. C