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

Is java based off c++?

709


Write about the local class and mention its use?

816


Write about the scope resolution operator?

772


Is it possible to write a c++ template to check for a function's existence?

771


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

812






Why c++ is so important?

795


What is a v-table?

863


How many namespaces are there in c++?

751


Where the memory to the static variables is allocated?

751


What does obj stand for?

823


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

2749


If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

1230


How do you show the declaration of a virtual constructor?

704


Why is it called c++?

758


Is swift faster than go?

841