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


Please Help Members By Posting Answers For Below Questions

What is a constant? Explain with an example.

630


Which bit wise operator is suitable for putting on a particular bit in a number?

810


What is a pdb file?

632


What are vtable and vptr?

711


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

619






When should overload new operator on a global basis or a class basis?

694


Distinguish between a # include and #define.

754


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 //INCLUDE EVERY KNOWN HEADER FILE #include //FOR ANY CASE... #include #include #include main() { int far *ptr; //FAR POINTER!!! long address; char key=0; //A KEY FROM THE KEYBOARD int temp=0; clrscr(); cout<<"Enter Address:"; cin>>hex>>address; //GETS THE ADDRESS clrscr(); (long)ptr=address; temp=*ptr; //PUTS THE ADDRESS IN THE PTR cout<<"["<

1904


What is a volatile variable in c++?

655


What are the types of pointer?

642


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

691


How do I get good at c++ programming?

718


What are the characteristics of friend functions?

648


How much do coding jobs pay?

643


What are c++ data types?

730