Home » C Programming » Bitwise Operators

If an unsigned int is 2 bytes wide then, What will be the output of the program? #include int main() { unsigned int a=0xffff; ~a; printf("%x\n", a); return 0; }

Correct Answer: ffff

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion