| Start |
|---|
| Integer Conversions in Function Calls Given that the function has a proper prototype, integers are widened for calls to functions according to the rules of integer conversion, C11 6.3.1.3. **6.3.1.3 Signed and unsigned integers** Otherwise, if the new type is unsigned, the value is converted by repeatedly adding or subtracting one more than the maximum value that can be represented in the new type until the value is in the range of the new type. Otherwise, the new type is signed and the value cannot be represented in it; either the result is implementation-defined or an implementation-defined signal is raised. Usually you should not truncate a wide signed type to a narrower signed type, because obviously the values can't fit and there is no clear meaning that this should have. The C standard cited above defines these cases to be "implementation-defined", that is, they are not portable. The following example supposes that |
| Pointer Conversions in Function Calls Pointer conversions to Syntax
Remarks"Explicit conversion" is also commonly referred to as "casting". |
Read Article
https://develop.horje.com/learn/1434/reference