Sail E0 Webinar
Question


Which of the following statements are correct about the program?


#include<stdio.h>
int main()
{
unsigned int num;
int i;
scanf("%u", &num);
for(i=0; i
Options:
A .  It prints all even bits from num
B .  It prints all odd bits from num
C .  It prints binary equivalent num
D .  Error
Answer: Option C

If we give input 4, it will print 00000000 00000100 ;
If we give input 3, it will print 00000000 00000011 ;
If we give input 511, it will print 00000001 11111111 ;



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers