What is the size of a pointer variable?

Questions by mithila

Showing Answers 1 - 24 of 24 Answers

Ravi D.

  • Oct 2nd, 2005
 

The size of a pointer variable is 4 bytes

  Was this answer useful?  Yes

Abhishek

  • Feb 27th, 2006
 

the size of a pointer variable will always be 2 bytes.

for eg:-   *ptr , ptr will contain the address and address is of integer type which is of 2 bytes.

  Was this answer useful?  Yes

chandan

  • Jun 24th, 2006
 

The size is 2 bytes.

  Was this answer useful?  Yes

Anon

  • Aug 25th, 2007
 

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

dipesh

  • Jul 6th, 2012
 

Its 8 byte on 64bit machine.

  Was this answer useful?  Yes

There is no fixed pointer variable size; it depends on the address range of the implementation and the pointer type. Its possible for pointers to different types to have different sizes and representations. For example, a Harvard architecture may have different sizes for function pointers vs. data pointers. A word-addressed architecture may have different sizes for pointers to types that take up full or multiple words (int, long, float, double, etc.) vs. types that take up only part of a word (char).

  Was this answer useful?  Yes

Arpita Mishra

  • Aug 4th, 2012
 

The size of a pointer variable is 2 bytes which is the size of unsigned integer as pointer variables are always used to store addresses.

  Was this answer useful?  Yes

Narmadha

  • Aug 23rd, 2012
 

The size of pointer variable depends on the processor architecture that is 32-bit or 64-bit.It may vary according to compiler we are used.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions