Operators are special characters used to perform specific operations. Now, there are few types of operators the first category is arithmetic operation, really straightforward, adding, subtract, multiply, and divide. Next we have compound operators that are doing arithmetic and assignment all together comparative and logical operators are very useful for building control statements we will see examples later on, don't worry we will use some of them during the project we are going to build.
To really start building more complicated code we need to use control statements. Control statements enable us to specify the flow of our program. Using them we can make decisions in specific locations. or to perform tasks repeatedly or to jump from one section of code to another one. there are two kinds of statements available in Arduino for controlling program flow:
The first one is "Conditional statements" that make decisions based on a condition is TRUE. over there we have the if-else and switch statements.
Next one is, "iterative statement" that perform block of code a certain number of times or until a condition becomes FALSE. iterative statements include the "for" and "while" statements.
Now, let’s start to see each one of them.
How To Use Operator & Control Statement Functions In Arduino Programming
December 12, 2018
0
Tags
Dear visitor. Click on "Follow" button from right side above and sign in with your Gmail account. Write unlimited comments on every post. 100% Free