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

I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

622


When should I use unitbuf flag?

598


What do you mean by late binding?

630


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

652


What is command line arguments in C++? What are its uses? Where we have to use this?

587






What is the use of namespace std in C++?

635


What is the role of C++ shorthand's?

685


write a programme to get a character and thier ASCII value

2608


What is a wchar_t in c++?

601


To what does “event-driven” refer?

620


Is map sorted c++?

529


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

637


Define a nested class.

620


What are the four main data types?

591


What is an html tag?

636