|
|
HP-UX/HP C Compiler: HP C/HP-UX Reference ManualChapter 4 Type Conversions |
|
Table of Contents The use of different types of data within C programs creates a need for data type conversions. For example, some circumstances that may require a type conversion are when a program assigns one variable to another, when it passes arguments to functions, or when it tries to evaluate an expression containing operands of different types. C performs data conversions in these situations.
Conversions from one type to another do not always cause an actual physical change in representation. Converting a 16-bit short int into a 64-bit double causes a representational change. Converting a 16-bit signed short int to a 16-bit unsigned short int does not cause a representational change. |
|