Hello,
ig*********@gmail.com wrote:
How can I get the address of return value in function?
Plain and simple answer, you can't. The location of the return value is
completely in the hands of the compiler, whether register or stack or
whatever. There are no syntactical means for influencing the return
value location or taking its address.
This would be helpfull to print return value automatically (when
object is destroyed).
I don't understand this, maybe you could provide a more complete
example, what you want to achieve, especially what it has to do with
destruction of an object.
Bernd