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

Answer Posted / saranya

if s=10
s=s>>1

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointer to member?

594


What are the advantages of using friend classes?

617


What is general format for a prototype?

588


Distinguish between a # include and #define.

639


What are c++ data types?

632






What is binary search in c++?

557


What is java and c++?

655


Why c++ is faster than java?

587


Please explain the reference variable in c++?

611


Describe private, protected and public?

592


What is namespace & why it is used in c++?

599


Explain the difference between new() and malloc() in c++?

618


What is pair in c++?

622


What is the role of static keyword for a class member variable?

619


What are single and multiple inheritances in c++?

568