What is the size of pointer ?
Also size of pointer in 64 bit pointer
Answers were Sorted based on User's Feedback
Answer / shraddha
The size of pointer is 2 bytes on 16 bit platform
The size of pointer is 4 bytes on 32 bit platform
The size of pointer is 8 bytes on 64 bit platform
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / kunal mittal
Size of the pointer often corresponds to the architecture
Using a 32-bit OS gives you a 32bit pointer (ditto for 64 bit)
Is This Answer Correct ? | 4 Yes | 3 No |
Answer / 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 |
What are the debugging methods you use when came across a problem?
Does dev c++ support c++ 11?
Which operator can not be overloaded in C++?
If you had the following code: int x = 23; int *y; y = &x; The instruction y++; does what?
Does a derived class inherit or doesn't inherit?
Why do we use classes in c++?
If there are 1 to 100 Numbers in array of 101 elements. Which is the easy way to find repeated number?
What is the use of map in c++?
Why is it difficult to store linked list in an array?
Which is most difficult programming language?
What is a stack c++?
What is the difference between the functions rand(), random(), srand() and randomize()?