integer takes 4 blocks of memory to store a number , char takes a single block and the pointer to both takes only 1 block . shouldn’t the pointer should take 1 byte as it uses just the first block?
Size of POINTER
@tusharbhardwaj127
hello Tushar,
pointer contains addresses and address of variable in memory is independent from its datatype.
thats why pointer size is fixed.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.