What is the size of pointer ?
Also size of pointer in 64 bit pointer
Answer Posted / babita sharma
Size of a pointer is 2 Bytes
Is This Answer Correct ? | 0 Yes | 9 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 #include iostream h in c++? Why is null pointer used? Can we declare a base-class destructor as virtual? What is constructor and destructor in c++? What is static class data? Which operator cannot be overloaded c++? What are the c++ access specifiers? Is recursion allowed in inline functions? Is multimap sorted c++? What are the uses of c++ in the real world? What is an html tag? Can we delete this pointer in c++? How many different levels of pointers are there? what kind of projects are suitable for c and c++