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


Please Help Members By Posting Answers For Below Questions

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<<"["<

1906


What is #include iostream h in c++?

729


Why is null pointer used?

787


Can we declare a base-class destructor as virtual?

660


What is constructor and destructor in c++?

707






What is static class data?

658


Which operator cannot be overloaded c++?

674


What are the c++ access specifiers?

917


Is recursion allowed in inline functions?

692


Is multimap sorted c++?

653


What are the uses of c++ in the real world?

658


What is an html tag?

720


Can we delete this pointer in c++?

789


How many different levels of pointers are there?

759


what kind of projects are suitable for c and c++

712