In single-threaded code, that’s fine. But the moment you have multiple threads incrementing the same counter, weird things start happening. Your final count will almost never match what you expected.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results