PRF192_-_SU_2024_-_FE_2315.webp
hoangha297

PRF192_-_SU_2024_-_FE_2315.webp

Kizspy | Question: 15 (Choose 1 answer)
How does a "for" loop differ from a "while" loop in C programming?
A. A "for" loop is used for iterating over a sequence of elements, while a "while" loop is used to execute a block of code repeatedly as long as a condition is true.
B. A "for" loop is primarily used for conditional statements, while a "while" loop is designed for sequential processing.
C. The use of "for" and "while" loops is interchangeable; there is no substantial difference between them.
D. A "for" loop is exclusively used with arrays, while a "while" loop is used with numerical calculations.

Thông tin

Category
PRF192
Thêm bởi
hoangha297
Ngày thêm
Lượt xem
3,413
Lượt bình luận
7
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom