size of structure pointer

is there way to find the size of structure pointer size?

when we tried to get the size of structure pointer will get size of address(@ location) which would be 4 bytes long.

but i want to get the size of all structure members size using structure pointer.

So you don't want the the size of the pointer? If you want the size of the structure (object) you have to dereference the pointer first.
 
sizeof(*ptr)
Topic archived. No new replies allowed.