A. | 5,4 |
B. | 6,5 |
C. | 5,6 |
D. | 5,5 |
Option: A Explanation : Click on Discuss to view users comments. |
The following 'C' program
main
{
unsigned int num;
int i;
scanf("%u",&num);
for(i=0;i<16;i++)
printf("%d",(num<<i&1<<15)?1:0);
}
A. | Prints all even bits from num |
B. | Error |
C. | Prints binary equivalent of num |
D. | none of these |
Option: C Explanation : Click on Discuss to view users comments. senthil said: (9:38pm on Saturday 25th February 2017)
in this question main is printed Instead of main() will it work?
|
A. | ffff |
B. | 0fff |
C. | 0000 |
D. | Error |
Option: A Explanation : Click on Discuss to view users comments. |
A. | Putting of all bits which are on in the number n |
B. | Testing whether the individual bits of n are on or off |
C. | Would give an error |
D. | Undefined |
Option: B Explanation : Click on Discuss to view users comments. |