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
What is & in c++ function?
Specify some guidelines that should be followed while overloading operators?
What is format for defining a structure?
What does extern mean in a function declaration in c++?
Does c++ have arraylist?
What is stl containers in c++?
Explain Memory Allocation in C/C++ ?
Can you write a function similar to printf()?
What does new do in c++?
What do you mean by “this” pointer?
what is data encapsulation in C++?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
Explain all the C++ concepts using examples.