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