Sail E0 Webinar
Question


If an unsigned int is 2 bytes wide then, What will be the output of the program ?


#include<stdio.h>
int main()
{
unsigned int a=0xffff;
~a;
printf("%x\n", a);
return 0;
}
Options:
A .  ffff
B .  0000
C .  00ff
D .  ddfd
Answer: Option A



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers