Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
yholio
· 5y ago · 0 comments
{return 1;} is clearly a faulty implementation, it's entirely possible that the computer is already turned off by the time the function is executed using power stored in the decoupling capacitors of the CPU.
Comments
[–]
azundo
5y ago
Since the behavior is undefined when the computer is off this implementation seems correct in your hypothetical as well.