which is the easy way to divide any integer by 2?

Answer Posted / rahul

int i = 10;
i = i >> 1;

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can circle be called an ellipse?

624


Explain differences between alloc() and free()?

571


What is a friend function in c++?

570


What will the line of code below print out and why?

316


What is c++ programming language?

565






What is a literal in c++?

557


Why do we use classes in c++?

567


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?

573


What does flush do c++?

546


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

734


What is scope in c++ with example?

619


What is a static member?

604


State two differences between C and C++.

600


What is a terminating character in c++?

755


What do you mean by static variables?

595