C Programming - Structures, Unions, Enums - Discussion

Discussion Forum : Structures, Unions, Enums - Find Output of Program (Q.No. 7)
7.
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;
}
12, 12, 12
112, 1, 12
32, 1, 12
-64, 1, 12
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
58 comments Page 6 of 6.

Ramya said:   8 years ago
Thanks @Vedhashree.

Jalandhar said:   1 decade ago
Thans a lot @vijay

Swaroop said:   6 years ago
Thanks @Vedashree.

Atul jain said:   1 decade ago
Thanks Vedhashree.

Vikas said:   1 decade ago
Thanks vedhashree.

Syed said:   1 decade ago
Thanks vedashree

Prerna said:   1 decade ago
Thanx Vedashree

Monica said:   1 decade ago
Thanx Mani


Post your comments here:

Your comments will be displayed after verification.