Sangeetha Revanna wrote:In for loop initialization is done only once right? but how for every iteration 'i' will again assigned to zero?
and after the 4th line ''i" value got incremented from 5th line right?
In this topic you'll find an explanation for exactly the same question. So it's definitely worth reading! And in this topic you'll find an extensive discussion with lots of code examples. Definitely worth reading too!