O'Reilly logo

Learn C on the Mac: For OS X and iOS, Second Edition by James Bucanek, David Mark Scott Brown

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

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

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