Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why do we use iterators?

1131


Describe linkages and types of linkages?

1046


What are compilers in c++?

1106


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

1109


What are the advantages of c++ over c?

1134


what you know about c++?

1199


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1383


What is low level language in simple words?

1084


Write a function that swaps the values of two integers, using int* as the argument type?

1080


Why pointer is used in c++?

1231


What is format for defining a structure?

1136


How would you find out if a linked-list is a cycle or not?

1054


What is the difference between set and map in c++?

1180


What is the rule of three?

1050


How can we access protected and private members of a class?

1162