What is the size of pointer ?
Also size of pointer in 64 bit pointer
Answer Posted / shakti singh khinchi
Ans1: Size of a pointer is size of a WORD in OS. OR you can
say that size of a pointer is similar to size of a "int"
variable on that OS.
Ans2: size of 64 bit pointer is also similar to size of an
integer type variable that is 8 bytes.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is a constant? Explain with an example.
Which bit wise operator is suitable for putting on a particular bit in a number?
What is a pdb file?
What are vtable and vptr?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
When should overload new operator on a global basis or a class basis?
Distinguish between a # include and #define.
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 a volatile variable in c++? What are the types of pointer? You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc() How do I get good at c++ programming? What are the characteristics of friend functions? How much do coding jobs pay? What are c++ data types?