Cisco Systems Interview Report
- 0of 0 votes
AnswersWhat does the following program do ?
- Vezita May 02, 2012 in India
main ()
{
unsigned int num ;
int i ;
scanf("%u ", &num);
for(i=0;i<16;1++)
printf("%d",(num<<i & 1<<15) ? 1:0);
}
A. print all even bits from num
B. print all odd bits from num
C. prints binary equivalent of num| Report Duplicate | Flag | PURGE
Cisco Systems Software Engineer / Developer C - 1of 1 vote
AnswersWhat is the output of:
- Vezita May 02, 2012 in United Statesmain () { printf("%x", -1<<4); }
| Report Duplicate | Flag | PURGE
Cisco Systems Software Engineer / Developer
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.