WHAT IS THE SIZE OF INT POINTER AND CHAR POINTER IN C?
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.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
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