Why does this for loop exit on some platforms and not on others?

前端 未结 14 2752
执念已碎
执念已碎 2020-12-12 09:00

I have recently started to learn C and I am taking a class with C as the subject. I\'m currently playing around with loops and I\'m running into some odd behaviour which I d

14条回答
  •  甜味超标
    2020-12-12 09:59

    I will suggest something that I dint find above:

    Try assigning array[i] = 20;

    I guess this should terminate the code everywhere.. (given you keep i< =10 or ll)

    If this runs you can firmly decide that the answers specified here already are correct [the answer related to memory stomping one for ex.]

提交回复
热议问题