Operators: Lesson
Lesson 1 of 1
  1. 1
    In this lesson you will learn about: 1. performing basic mathematical operations on variables and values using common symbols. 2. assigning values to variables and/or performing basic mathematical …
  2. 2
    At their core, computers are basically fancy calculators. So it’s a good thing to learn how to perform basic mathematical operations early on in your language development. Addition and subtraction…
  3. 3
    You may have run across modulo, symbolized as the percent symbol %, before. If not, or as a reminder, modulo performs division but instead of giving you the number of times the denominator goes int…
  4. 4
    C has several shorthand tricks you can use to make your life easier. For instance, it is very common inside a loop to have a counter you want to increment (add 1) or decrement (subtract 1) on each …
  5. 5
    It’s one thing to do all these operations, but if the results are thrown away as soon as the statement finishes executing, the entire process has limited usability. What we need is a way to assign …
  6. 6
    You haven’t learned about statements that check on and respond to true/false (known as boolean) values yet, but since we are talking about arithmetic symbols we wanted to give you a primer with the…
  7. 7
    You do not just have to check one part at a time when you are doing your comparisons. C lets you see if two or more parts are true, if at least one is true, or if something is not true. We have alr…
  8. 8
    C does not just process the statements you send it blindly from left to right. It looks at the statements and applies standard rules to the order in which the statements should be processed. For in…
  9. 9
    Congratulations on finishing this lesson on operators in C! In this lesson you learned about: - Basic mathematical operations in C: addition, subtraction, division, multiplication, incrementing, d…

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo