why different results depending on how executed?

sorry, mistake