PRF192_-_SU_2024_-_Block_5_-_FE_2675.webp
R

PRF192_-_SU_2024_-_Block_5_-_FE_2675.webp

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

Share this media

Back
Bên trên Bottom