C Programming - Bitwise Operators
Exercise : Bitwise Operators - Find Output of Program
- Bitwise Operators - General Questions
- Bitwise Operators - Find Output of Program
- Bitwise Operators - Point Out Correct Statements
- Bitwise Operators - True / False Questions
- Bitwise Operators - Yes / No Questions
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;
}
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;
}
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers