Why the size of pointer variable is 2 bytes ?

Showing Answers 1 - 9 of 9 Answers

hariprasad takoor

  • Mar 4th, 2015
 

it contains address of the data

  Was this answer useful?  Yes

rvg

  • Aug 8th, 2016
 

Any pointer irrespective of what it is referencing (pointing to), it stores address where that content is stored.
Any address is in hex, which is of type integer. So it takes up 2 bytes required to store int data type.

  Was this answer useful?  Yes

vijay

  • Jun 30th, 2017
 

The size of the pointer will always be 2 bytes because the pointer variable is only used to store the address regardless of the data type. but the size will different from different compiler.

  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