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 for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

0 Answers  


In C++ cout is: a) object b) class c) something else

11 Answers   Infosys, Lehman Brothers,


What is class invariant in c++?

0 Answers  


Why pointer is used in c++?

0 Answers  


Define upcasting.

0 Answers  






When is a template better solution than a base class??

2 Answers   emc2,


Types of storage and scope of each type

2 Answers   CA,


Is c++ an integer?

0 Answers  


What is a "RTTI"?

6 Answers   HCL,


What is time h in c++?

0 Answers  


What is a smart pointer?

2 Answers  


Should I learn c++ c?

0 Answers  


Categories