S
syntax
what is the size of a pointer?
suppose i am writing,
datatype *ptr;
sizeof(ptr);
now what does this sizeof(ptr) will give? will it give the size of the
data the pointer is pointing to?
if no, can you give an counter example?
basically , i want to know what is the meaning of size of a ponter.
as you know
sizeof(int)=4;
sizeof(char)= 2;
but what does sizeof(ptr) means??
can anybody explain?
suppose i am writing,
datatype *ptr;
sizeof(ptr);
now what does this sizeof(ptr) will give? will it give the size of the
data the pointer is pointing to?
if no, can you give an counter example?
basically , i want to know what is the meaning of size of a ponter.
as you know
sizeof(int)=4;
sizeof(char)= 2;
but what does sizeof(ptr) means??
can anybody explain?