Please enter your email:

1. If int a=5, b; b=–a; what are values of a and b?

 
 
 
 

2. What is the result of 16 >> 2?

 
 
 
 

3. What is the result of 8 << 1?

 
 
 
 

4. If int a=3; printf(“%d”, a<<2); what is output?

 
 
 
 

5. What will be the value of a after int a = 5; a++;?

 
 
 
 

6. What is value of a after int a=10; a-=4;?

 
 
 
 

7. What is 5 ^ 3?

(Binary: 0101 ^ 0011)

 
 
 
 

8. What is 5 | 3?

(Binary: 0101 | 0011)

 
 
 
 

9. What is 5 & 3?

(Binary: 0101 & 0011)

 
 
 
 

10. If int a=32; printf(“%d”, a>>3); what is output?

 
 
 
 

Question 1 of 10

Leave a Reply

Your email address will not be published. Required fields are marked *

Chat Icon