Difference between shift left and shift right?



Difference between shift left and shift right?..

Answer / devesh kumar patel

in shift left we multiply the no by 2^n and in right shift
we multiply the no by 2^-n (where 'n' is no. of shift)

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More C++ General Interview Questions

write a program that takes two numbers from user that prints the smallest number

2 Answers  


wrong statement about c++ a)code removably b)encapsulation of data and code c)program easy maintenance d)program runs faster

11 Answers  


How do you declare A pointer to function which receives an int pointer and returns a float pointer

0 Answers  


How many ways are there to initialize an int with a constant?

1 Answers  


What is a responder chain?

0 Answers  






Why do we need function?

0 Answers  


How do you master coding?

0 Answers  


Is c++ harder than java?

0 Answers  


Can you use the function fprintf() to display the output on the screen?

0 Answers  


What is an accessor in c++?

0 Answers  


What is design pattern?

2 Answers   Samsung,


How can we check whether the contents of two structure variables are same or not?

0 Answers  


Categories