C language introductory tutorial -4 operators

Arithmetic operator

Relational operator



This is usually used with if conditional statements

Logical operator



If (a&&b) // if a is true, b is true, a&&b is true

{

}

If (a | | b) / / used here | | as an example of a and b is only one true, a && b result is true This means or

{

}