This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:iot-open:introductiontoembeddedprogramming2:cppfundamentals:program_structures [2023/11/21 22:21] – pczekalski | en:iot-open:introductiontoembeddedprogramming2:cppfundamentals:program_structures [2023/11/23 10:20] (current) – pczekalski | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Program Control Statements, Logical operators ====== | ====== Program Control Statements, Logical operators ====== | ||
+ | {{: | ||
It is essential to understand that if no statements change the normal program flow, the microcontroller executes instructions one by one in the order they appear in the source code (from the top - to the down direction). Control statements modify normal program flow by skipping or repeating parts of the code. Often, to decide if the part of the code should be executed or to choose one of the number of possible execution paths, conditional statements are used. For repeating the part of the code, loop statements can be used. | It is essential to understand that if no statements change the normal program flow, the microcontroller executes instructions one by one in the order they appear in the source code (from the top - to the down direction). Control statements modify normal program flow by skipping or repeating parts of the code. Often, to decide if the part of the code should be executed or to choose one of the number of possible execution paths, conditional statements are used. For repeating the part of the code, loop statements can be used. | ||