Array index incrementing limit

  arrays, c++

Consider the code given below. let i = 0 and size of array be 3 and for all three index it satisfy the while loop condition.so will i be keep on increasing after it has reached value of 2??

while (A[i] <= 0)
        {
            i++;
        }

Source: Windows Questions C++

LEAVE A COMMENT