Q16.webp
Erza_girl

Q16.webp

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

Share this media

Back
Bên trên Bottom