Remix.run Logo
▲ 0x457 2 hours ago

In practice, it will be 0, assuming no external modification of a. Strictly under standard, its UB.

▲sedictious an hour ago | parent [-]

yes which is exactly why you don't keep those things in mind most of the times. They are mostly academic exercises yet they pop up in your actual code from time to time and you find yourself furiously scratching your head. But my point is that C++ is huge and there is no way any single human can keep the whole standard in their head.