“Undefined behavior” is just that — undefined. The fact that it’s undefined makes “why is it doing that?” an invalid question.
“Undefined behavior” is just that — undefined. The fact that it’s undefined makes “why is it doing that?” an invalid question.