What is the role of the 'continue' statement in a loop?
- It exits the program.
- It restarts the loop from the beginning.
- It skips the current iteration and continues with the next.
- It terminates the loop.
The 'continue' statement is used in loops to skip the current iteration and move to the next iteration. It does not terminate the loop but helps to skip certain iterations.
Loading...
Related Quiz
- What is the scope of a local variable defined inside a function in C?
- When reading a text file in C, which function can be used to read data from the file?
- What is the primary cause of memory leaks in a C program?
- In optimizing a recursive algorithm for calculating Fibonacci numbers, what concept can be applied to avoid redundant calculations?
- What is the behavior of a union when different data types of different sizes are used?