liveBook · Manning

Signedness

Signedness is the property of an integer type that determines whether its values include negative numbers or are restricted to nonnegative numbers.

How 2 Manning books explain it

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.

Read how Modern C explains signedness →

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.

Read how Modern C, Third Edition explains signedness →

Related concepts

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.