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
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include What is c++ prototype? What is the difference between method overloading and method overriding in c++? What are the rules for naming an identifier? What are the various operations performed on stack? What are friend classes? What are advantages of using friend classes? Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over? What does h mean in maths? Mention the purpose of istream class? Can we overload operator in c++? an integer constant must have atleast one
a) character
b) digit
c) decimal point What are its advantages and disadvantages of multiple inheritances (virtual inheritance)? What is the purpose of templates in c++? What is the difference between the compiler and the preprocessor? Can malloc be used in c++?