3 ms·
{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
by yholio 5y ago
{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.
- azundo 5y agoSince the behavior is undefined when the computer is off this implementation seems correct in your hypothetical as well.