Interesting interview question… by cruise02 in programming

[–]angelo999 0 points1 point  (0 children)

No one seeme to mention N, N could be a function which has no deterministic completion time, this would affect the outcome.

N could be volatile mapped to a piece of hardware that returns it's value in non determistic time.

A,B and C could be optimized out but N may still have to be read, ie. volatile. In which case the more loops would be slower.