Home » C Programming » Loops » Question
  1. Which for loop has range of similar indexes of ‘k’ used in for (k = 0;k < num; k++)?
    1. for (k = num; k >= 0; k–)
    2. for (k = num-1; k>-1; k–)
    3. for (k = num; k>0; k–)
    4. for (k = num-1; k>0; k–)
    5. None of these
Correct Option: B

for (k = num-1; k>-1; k–)



Your comments will be displayed only after manual approval.