9. How Does C Do Math?

With Operators


There are two kinds of operators. There are the ones who help you with long distance phone calls, but we won’t be discussing those. There are also C operators, which let you do math. You don’t have to be a math wizard to write programs that use math operators. C does all the math for you as long as you know how to list the operators properly.

Not only should you learn to recognize math operators, but you should also learn how C orders math operators. C doesn’t always calculate from left to ...

Get Absolute Beginner’s Guide to C, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.