Which type of loop is commonly used to iterate through an array in C?

Review the verified answer and explanation for this SPSC – Sindh Public Service Commission past-paper question on CampusFin.

Which type of loop is commonly used to iterate through an array in C? Answer: For loop

In C, a for loop is most commonly used to iterate through an array because it allows initialization, condition checking, and increment/decrement in a single line, making it concise and convenient for index-based iteration. While while and do-while loops can also iterate arrays, for loops are preferred.

Question context

This question is part of 💡 C Programming within the broader 💻 Programming subject and appears in the SPSC – Sindh Public Service Commission preparation collection. Reviewing the answer together with nearby questions helps reinforce the underlying concept and identify how it may appear in competitive exams.