C Programming - Bitwise Operators - Discussion

Discussion Forum : Bitwise Operators - Find Output of Program (Q.No. 2)
2.
If an unsigned int is 2 bytes wide then, What will be the output of the program ?
#include<stdio.h>

int main()
{
    unsigned int m = 32;
    printf("%x\n", ~m);
    return 0;
}
ffff
0000
ffdf
ddfd
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
35 comments Page 4 of 4.

Chinnu said:   1 decade ago
Thanks munni thanku so much.

Divya said:   1 decade ago
Thanks for your explanation.

Meghana k said:   2 years ago
Thank you it was helpful.

Sanjay said:   1 decade ago
Good explain munni.

NEERAJ KUMAR said:   1 decade ago
Thank nitu


Post your comments here:

Your comments will be displayed after verification.