C Programming - Bitwise Operators - Discussion
Discussion Forum : Bitwise Operators - Find Output of Program (Q.No. 9)
9.
What will be the output of the program ?
#include<stdio.h>
int main()
{
int i=32, j=0x20, k, l, m;
k=i|j;
l=i&j;
m=k^l;
printf("%d, %d, %d, %d, %d\n", i, j, k, l, m);
return 0;
}
Discussion:
28 comments Page 3 of 3.
Jegan x said:
1 decade ago
In or operator 1+1 = 10 ? what will print for k.
BalaG said:
9 years ago
@Vikram.
Your explanation is clear, Thanks.
Your explanation is clear, Thanks.
Sukanya said:
1 decade ago
Can anyone explain this answer correctly?
Mayur said:
9 years ago
Your explanation is clear, Thanks @Raju.
Charu said:
1 decade ago
Please explain the value of 0*80?
Anil said:
1 decade ago
Please explain 0x20 = 32 happens?
Abhinav said:
1 decade ago
What does x means 0x20?
Mita said:
1 decade ago
Thanks Rams
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers