Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
orbitur
· 11y ago · 0 comments
Can someone explain what happened in the C example?
Comments
[–]
steveklabnik
11y ago
Well, it's not guaranteed to print 3, it can do anything it wants. Since you have a dangling pointer, it's not pointing to valid memory. So it depends.