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 the use of vtable?

673


How do I use turbo c++?

552


What are the four main data types?

587


Can non graphic characters be used and processed in C++?

704


Can we sort map in c++?

598






What are the implicit member functions of class?

597


What does I ++ mean in c++?

585


What are containers in c++?

571


What is the full name of logo?

596


Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

609


What are the comments in c++?

576


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

587


Is c++ a float?

606


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2256


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

724