Term
|
Definition
| Stores a regular integer, defaulting to 32-bits |
|
|
Term
|
Definition
| Holds a large floating point number |
|
|
Term
|
Definition
| Holds a smaller floating point number |
|
|
Term
|
Definition
| Holds a single 1 byte character |
|
|
Term
|
Definition
| Indicates "no type" and used to say a function returns nothing, or a pointer has no type as in void *thing |
|
|
Term
|
Definition
| Enumerated types, work as integers, convert to integers, but give you symbolic names for sets. Some compilers will warn you when you don't cover all elements of an enum in switch-statements |
|
|
Term
|
Definition
| Changes the type so that it does not have negative numbers, giving you a larger upper bound but nothing lower that 0 |
|
|
Term
|
Definition
| Gives you negative and positive numbers, but halves your upper bound in exchange for the same lower bound negative |
|
|
Term
|
Definition
| Uses a larger storage for the type so that it can hold bigger numbers, usually doubling the current size |
|
|
Term
|
Definition
| Uses smaller storage for the type so it sores less, but takes half the space |
|
|
Term
|
Definition
| Indicates the variable won't change after being initialized |
|
|
Term
|
Definition
| Indicates that all bets are off, and the compiler should leave this alone and try not to do any fnacy optimizations to it. You usually only nees this if you're doing really weird stuff to your variables |
|
|
Term
|
Definition
| Forces the compiler to keep this variable in a register, and the compiler can just ignore you. These days compilers are better at figuring out where to put variables, so only use this if you actually can measure it improving the speed |
|
|
Term
| TYPE CONVERSION: LIST THE ORDER |
|
Definition
- long double
- double
- float
- int (but only by char and short int)
- long
|
|
|
Term
- int8_t
- uint8_t
- int16_t
- uint16_t
- int32_t
- uint32_t
- int64_t
- uint64_t
|
|
Definition
- 8 bit signed integer
- 8 bit unsigned integer
- 16 bit signed integer
- 16 bit unsigned integer
- 32 bit signed integer
- 32 bit unsigned integer
- 64 bit signed integer
- 64 bit unsigned integer
|
|
|
Term
|
Definition
| Maximum positive number of the signed integer of bits (N), such as INT16_MAX |
|
|
Term
|
Definition
| Minimum negative number of signed integer of bits (N) |
|
|
Term
|
Definition
| Maximum positive number of unsigned integer of bits (N). Since it's unsigned the minimum is 0 and can't have a negative value. |
|
|