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
Why do we use iterators?
Describe linkages and types of linkages?
What are compilers in c++?
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
What are the advantages of c++ over c?
what you know about c++?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
What is low level language in simple words?
Write a function that swaps the values of two integers, using int* as the argument type?
Why pointer is used in c++?
What is format for defining a structure?
How would you find out if a linked-list is a cycle or not?
What is the difference between set and map in c++?
What is the rule of three?
How can we access protected and private members of a class?