Signedness
Signedness is the property of an integer type that determines whether its values include negative numbers or are restricted to nonnegative numbers.
Modern C
Signedness is the property of an integer type that determines whether its representation and value range include negative values.
- How it is used
- Explains how integer signedness shapes value ranges and implicit conversions in C expressions.
- How deep it goes
- Works through comparisons and ranges, but defers a complete account of signed integer representation.
- Examples
- Uses comparison expressions, integer declarations, and bounds tables to expose range loss and conversion surprises.
- What you can do after
- Diagnose surprising comparisons and select arithmetic types that avoid harmful implicit conversions.
Modern C, Third Edition
Signedness is the property of an integer type that determines whether its values include negative numbers or are restricted to nonnegative numbers.
- How it is used
- Uses signedness to explain implicit conversions, comparison behavior, and safer choices of arithmetic types.
- How deep it goes
- Explains mixed-sign comparisons through converted values and platform widths, while stopping short of a complete conversion taxonomy.
- Examples
- Uses signed and unsigned comparisons plus assignments whose values fit, overflow, or lose information.
- What you can do after
- Diagnose/debug mixed-signedness comparisons and select arithmetic types that reduce implicit-conversion surprises.
Related concepts
- implicit conversioncontrasts with · Implicit conversion is an automatic change of a value from one type to another according to language rules, without an explicit conversion operation in the source code.
- unsigned integercontrasts with · An unsigned integer is an integer type or representation whose values are nonnegative, with its representable range determined by its bit width and applicable rules.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

