Chapter    13

Advanced Topics

Congratulations! By now you’ve mastered most of the fundamental C programming concepts. This chapter will fill you in on some useful C programming tips, tricks, and techniques that will enhance your programming skills. Some are additional features of the C language while others are advanced programming techniques. You’ll start with a look at type conversion, C’s mechanism for translating one data type to another.

Type Conversion

In a few places along your journey to learning C, you’ve assigned one type of variable to another. You’ve assigned an int variable to a char. In other places you passed an argument value that had a slightly different type than the function’s parameter type. As an example, in the Factor() ...

Get Learn C on the Mac: For OS X and iOS, Second Edition now with O’Reilly online learning.

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