Difference between shift left and shift right?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an overflow error?

619


How the delete operator differs from the delete[]operator?

642


Where are setjmp and longjmp used in c++?

622


Does c++ vector allocate memory?

530


What is a storage class?

643






You want to link a c++ program to c functions. How would you do it?

539


What are c++ storage classes?

620


Specify different types of decision control statements?

355


What is the full form of dos?

566


Explain the difference between abstract class and interface in c++?

528


Do you know the use of vtable?

635


What is searching?

653


Explain static and dynamic memory allocation with an example each.

642


What new()is different from malloc()?

569


What is java and c++?

664