Y
Hacker News
new
|
ask
|
show
|
jobs
by
masklinn
1883 days ago
> What do you mean by assigning to a pointer?
*x = y
1 comments
kevincox
1883 days ago
I don't think that does because IIUC you are copying the bits of y to x. So I guess semantically y has escaped but you aren't doing a new heap allocation, you are reusing the memory of x.
link