O'Reilly logo

Absolute Beginner’s Guide to C, 2nd Edition by Greg Perry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9. How Does C Do Math?

With Operators

image

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required