Chapter Table of Contents

Ch. 4 Operators

Section Table of Contents

Quick Summary

Before we move on here's a brief review of all the operators we learned so far:

Style Guide

When using binary operators, you should leave at least 1 space between the operands (the things being operated on) and the operator. When using a unary operator, you should not leave any space. Remember, you should follow style conventions to help code be readable to humans.

Good style:

a += 1;
a = 5 - 1;
a++;

Bad style:

a+=1
a=5 -1;
a   ++;

Lots of Operators!