C Programming - Bitwise Operators - Discussion

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

int main()
{
    int i=4, j=8;
    printf("%d, %d, %d\n", i|j&j|i, i|j&&j|i, i^j);
    return 0;
}
4, 8, 0
1, 2, 1
12, 1, 12
0, 0, 0
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
25 comments Page 3 of 3.

Hayyan said:   8 years ago
| what is this symbol means?

Raj said:   1 decade ago
This explanation is good

Imran said:   1 decade ago
I am not understanding

Sana said:   1 decade ago
51 59 110 is correct.

Santhu said:   1 decade ago
Vennila is correct.


Post your comments here:

Your comments will be displayed after verification.