C Programming Tutorial 49 – Relational Operators

In the last blog I spoke of Good Coding Practices.  Check the one out first! Are you new here? Start at the beginning, Intro to C!

In the previous videos we have worked with if statements that work with strictly true or false values.  We’ve used both bool variables and we’ve also replaced variables with actual values and learned that any number that is not zero is considered to be true. 

What if we want to change the way our if statements work and instead of consider anything not zero to be false, we want to pick our own rules with what is true and false?  This is where relational operators come in.

Continue reading “C Programming Tutorial 49 – Relational Operators”