All languages

C

You're viewing a free preview. Sign in free to read every script.

Why this exists Numbers in C are not the tidy numbers of mathematics. Each integer type has a fixed size in bytes, and therefore a largest value. Go past it and the result is either a silent wrap around or, for signed…

C Basics: Integer Sizes, Overflow, Casting and Bitwise Flags

How big an int really is, what happens when a number does not fit, why -1 can be "greater" than 10, and how bit operations pack permissions and IP addresses into a single number.

Sign in free to read this script, along with the rest of the library.

Sign in free