Why scanf is performing 11 times? : [C Language Array][1]
Clearly, The first loop condition should run only 10times but instead it asks me for 11th value. Anyone knows about this? Or it's just one of many weird behaviours of C?

But in the 2nd loop it's working the way I want!


  [1]: https://i.stack.imgur.com/aWeLM.png