why the size of pointer is 8 insead of 4 bytes(size of int)
Pointer memory allocation
size of pointer will be 4 not 8
where you are checking ?
send me the screen shot
here sizeof(a) is coming 8 in the output.
may be it is because of 64-bit compiler
this is the whole code
so , the correct answer should awlays be 4, right?irrespective of the type of pointer
yes 4 is correct ans irrespective of pointers
1 Like