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

How static variables and local variablesare similar and dissimilar?

0 Answers  


What is the difference between #define debug 0 and #undef debug?

0 Answers  


What is the difference between a type-specific template friend class and a general template friend class?

0 Answers  


What do you mean by vtable and vptr in c++?

0 Answers  


What are the advantages of using const reference arguments in a function?

0 Answers  






What is Name Decoration?

2 Answers   Lucent,


Why can templates only be implemented in the header file?

0 Answers  


Why is c++ considered difficult?

0 Answers  


what is meaning of isa and hsa

1 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

4 Answers   Webyog,


What are the popular tools used to detect memory leaks in c++

4 Answers   TATA,


Using a smart pointer can we iterate through a container?

0 Answers  


Categories