Which among the following operator has the right to left associativity
Practice Bitwise Operators – Which among the following operator has the right to left associativity?
Practice Bitwise Operators – Which among the following operator has the right to left associativity?
Practice Bitwise Operators – Predict the output of following “C” code:
main()
{
int x,a=10;
x=9*5+ 7/3 -6+a;
printf("%d",x);
}
Practice Bitwise Operators – The expression a << 6 shifts all bits of a six places to the left.If a 0x6db7, what is the value of a << 6?
Practice Bitwise Operators – If a = 0x6db7 and b = 0xa726, what is the value of a a^b?
Practice Bitwise Operators – What will be output of the following “c” code?
#include
void main()
{
printf(" %x", -1<<4);
}
Practice Bitwise Operators – What logic function is produced by adding an inverter to each input and the output of and OR gate?
Practice Bitwise Operators – Suppose i,j,k are integer variable with values 1,2,3 respectively. What is the value of the below expression
!((j + k) > (i + 5))?
Practice Bitwise Operators – If the following variables are set to the values as shown below, then what is the value of the expression following it?
answer= 2;
marks= 10;
!((answer < 5) || (markes > 2 ))
Practice Bitwise Operators – What is the final value of digit?
void main()
{
int digit
for (digit = 0; digit < = 9; ++digit)
printf ("%d/n", digit);
digit = 2*digit;
- - digit;
}
Practice Bitwise Operators – How many times will the printf statement be executed?
void main()
{
int n; n=10;
while(n < 10){
printf ("hello");
--n;
} }
Practice Bitwise Operators – What will be value of count after the following C program is executed?
void main()
{
int count, digit = O;
count= 1;
while (digit <= 9){
printf ("%d/n", ++count);
++ digit;
}
Practice Bitwise Operators – What will be output of the following “c” code?
#include
void main()
{
printf(" %x", -1<<4);
}
What will be the output of the following program on GCC compiler?
Practice Bitwise Operators –
What will be the output of the following program on GCC compiler?
#include<stdio.h>
int main() {
unsigned int i = 0x80;
printf("%d
", i<<1);
return 0;
}
What will be the output of the following program on GCC compiler?
Practice Bitwise Operators –
What will be the output of the following program on GCC compiler?
#include<stdio.h>
int main() {
int x, y, z;
x=y=z=1;
z = ++x || ++y && ++z;
printf("x=%d, y=%d, z=%d
", x, y, z);
return 0;
}
What will be the output of the following program on GCC compiler?
Practice Bitwise Operators –
What will be the output of the following program on GCC compiler?
#include<stdio.h>
int main() {
int x = 10, y = 20;
if(!(!x) && x)
printf("x = %d
", x);
else
printf("y = %d
", y);
return 0;
}