Q:

WHAT IS THE SIZE OF INT POINTER AND CHAR POINTER IN C?

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

0

WHAT IS THE SIZE OF INT POINTER AND CHAR POINTER IN C?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Pointer variable size is not depending on data type as pointer always stores the address of other variable which is always integer data type.

So, any pointer (int, char, double, etc) size will be 2 for 16 bit processor, 4 for 32 bit processor and 8 for 64 bit processor.

sizeof() operator can be used to evaluate size of a variable/pointer in C.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C INTERVIEW QUESTIONS AND ANSWERS

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
HOW WILL YOU PRINT THE VALUE AND ADDRESS OF A POIN... >>
<< CAN A POINTER BE FREED MORE THAN ONCE IN C? WHAT H...