PRF192_-_SP_2025_-_FE_3581.webp
P

PRF192_-_SP_2025_-_FE_3581.webp

Kizspy Question: 13
(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
proud_nation
Ngày thêm
Lượt xem
2,370
Lượt bình luận
12
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom