Welcome to C Programming Tutorial three!
In the last C programming tutorial, we talked about what a variable is and went over some common variable types, explaining what they’re used for and what their limitations are.
We’re still learning the basics of C programming, so this time we’re going to talk about arithmetic and logic.
Logic and arithmetic are one of the foundations of any programming language.
Some may think the principles and rules on this are obvious and may be tempted to skip this tutorial. I urge you not to skip, especially if you’re new to C programming. While many things about arithmetic and logic may seem obvious and boring, there are some caveats and gotchas. Even if you’re a C programming aficionado, this tutorial can serve as a good review of the basics.
Sometimes, gaining more complex knowledge has the tendency to push simple things into the dusty corners of our brains, making us forget the basics and over-complicate things.