C Programming - Bitwise Operators - Discussion

Discussion Forum : Bitwise Operators - Find Output of Program (Q.No. 11)
11.
What will be the output of the program?
#include<stdio.h>

int main()
{
    unsigned int res;
    res = (64 >>(2+1-2)) & (~(1<<2));
    printf("%d\n", res);
    return 0;
}
32
64
0
128
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
24 comments Page 3 of 3.

Santhu said:   1 decade ago
Datta is correct.

Madhusudan said:   1 decade ago
Datta is right...

Naveen said:   1 decade ago
Datta very thanks

Harsh said:   6 years ago
@Datta is right.
(1)


Post your comments here:

Your comments will be displayed after verification.