Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • assignment statements

  • if and if-else statements (if, else if, else)

  • switch statements

  • comments : single line (//) and multiline (/*...*/)

  • operators :

    • increment operators (++ and --)

    • unary operators (- and !) 

    • binary operators : power (^), multiply (*), modulo (%), divide (/), sum (+), min (-)

    • ternary operator (a = x ? b : x)  see https://www.freecodecamp.org/news/c-ternary-operator/

      • Example: Switch command

        • If Switch = 1 : Output= a , else output = b

          Code Block
          Output = (Switch ==1) ? a: b;
    • conditional operators (|| and &&)

    • comparison (<=', >=, >, <, ==, '!=)

    • mathematical functions : exp, ln, sin, cos, tan, sqrt, min(x1, x2), max(x1, x2), abs, floor, ceil, sgn (signum)

...