What is the memory allocation for pointer?

Showing Answers 1 - 2 of 2 Answers

amar

  • Aug 8th, 2007
 

Memory alllocation for pointer is same as unsigned integer.
bcoz pointer variable stores the address of the variable to which it is pointing to regardless of its data type.

for eg.

char *charptr;
int *intptr;

here sizeof(charptr)==sizeof(intptr)

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