Which for loop has range of similar indexes of ‘i’ used in for (i = 0;i < n; i++)?
(a) for (i = n; i>0; i–)
(b) for (i = n; i >= 0; i–)
(c) for (i = n-1; i>0; i–)
(d) for (i = n-1; i>-1; i–)
This question was posed to me in an internship interview.
This intriguing question originated from For Loops in portion Control Flow Statements in C of C