Minor changes are by default collapsed in the page history.
No changes
The page does not exist yet.
Failed to load changes
Version by on
Leave Collaboration
Are you sure you want to leave the realtime collaboration and continue editing alone? The changes you save while editing alone will lead to merge conflicts with the changes auto-saved by the realtime editing session.
C Programming Loops
Last modified by Microchip on 2023/11/09 09:06
A loop statement allows us to execute a statement or group of statements multiple times.
Below is a table listing the different types of loops in the C language.
Loop Type
Description
while loop
Repeats a statement or group of statements while a given condition is true. It tests the condition before executing the loop body.
for loop
Executes a sequence of statements multiple times and abbreviates the code that manages the loop variable.
do … while loop
Like a while statement, except that it tests the condition at the end of the loop body.
nested loops
You can use one or more loops inside any other while, for, or do..while loop.
Menu
Microchip Support
Query Microchip Forums and get your questions answered by our community:
If you need to work with Microchip Support staff directly, you can submit a technical support case. Keep in mind that many questions can be answered through our self-help resources, so this may not be your speediest option.