G
Guest
Are there any way to prove that a variable of value type is created in stack
and a variable of ref type are created in heap?
I just take it granted as everybody and every books and pages says so. But
to how to prove it? Are there any way like finding the memory address of the
variable and then by that address to prove that it is in stack or heap?
Just curious to know and not for ridculing anybody...
Thanks,
Narayanan
and a variable of ref type are created in heap?
I just take it granted as everybody and every books and pages says so. But
to how to prove it? Are there any way like finding the memory address of the
variable and then by that address to prove that it is in stack or heap?
Just curious to know and not for ridculing anybody...
Thanks,
Narayanan