N
nicollete
I am trying to store the address of the memory location pointed to by
a union pointer
say I have
union header* p ;
No p is pointing to some memory location during the course of the
program and I need to store that address in a table , so that would be
a different struct.
what should be the variable I must use ? If I try to use (char*)p will
the code break?
please explain with a short example.
Thanks!
a union pointer
say I have
union header* p ;
No p is pointing to some memory location during the course of the
program and I need to store that address in a table , so that would be
a different struct.
what should be the variable I must use ? If I try to use (char*)p will
the code break?
please explain with a short example.
Thanks!