Programming MCQS - QUESTION DETAILS

What is the purpose of the 'do-while' loop in C?
A. Execute the loop at least once
B. Iterate over a range of values
C. Execute the loop until a condition is true
D. Execute the loop based on a condition

'do-while' ensures that the loop is executed at least once.

Similar Questions

How do you declare a structure in C?






What is the purpose of the 'break' statement in a loop in Java?






How is a single-line comment written in C?






What is the purpose of the 'break' statement in a switch statement?






How do you create a thread in Java?






What is the purpose of the 'sizeof' operator in C?






Which of the following is not a valid C data type?






What is the purpose of the 'enum' keyword in C?






How do you define a function in C?






How do you declare an array in Java?