O'Reilly logo

C Programming Absolute Beginner’s Guide, Third Edition by Dean Miller, 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

10. Powering Up Your Variables with Assignments and Expressions

In This Chapter

Saving time with compound operators

Fitting compound operators into the order of operators

Typecasting your variables

As you can see from Table 9.1 in the last chapter, C has a rich assortment of operators. Many operators help C keep its command vocabulary small. C doesn’t have many commands, but it has a lot more operators than in most other programming languages; whereas most computer programming languages have relatively few operators and lots of commands, C retains its succinct nature by providing many powerful operators.

This chapter explores a few more operators that you need as you write programs. The compound assignment operators and the typecast operator ...

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