TYPES WEEK 2 Flashcards
Description: Programming languages that use a type system to interpret bit streams in memory.
Title: Typed Programming Languages
Description: A typed programming language that uses types to define how to store values in memory and which operations are allowed on those values.
Title: C Language
Description: Rules that define how to store values in memory and which operations are admissible on those values.
Title: Types
Description: The four most common types in C for performing arithmetic calculations: char, int, float, and double.
Title: Arithmetic Types in C
Description: Occupies one byte and can store a small integer value, a single character, or a single symbol.
Title: Char Type
Description: Occupies one word and can store an integer value. In a 32-bit environment, an int occupies 4 bytes.
Title: Int Type
Description: Typically occupies 4 bytes and can store a single-precision, floating-point number.
Title: Float Type
Description: Typically occupies 8 bytes and can store a double-precision, floating-point number.
Title: Double Type
Description: Adjust the size of the int type. Three specifiers: short, long, long long.
Title: Size Specifiers for Int Type
Description: Keyword used to qualify a type as holding a constant value. A const-qualified type is unmodifiable.
Title: Const Qualifier
Description: Char and int types are stored in equivalent binary form.
Title: Integral Types
Description: Float and double types are used to represent floating-point data.
Title: Floating-Point Types
Description: Hardware manufacturers represent integral and floating-point data differently.
Title: Representing Values
Description: C stores characters and symbols in char types. The host platform provides a collating sequence for associating each character and symbol with a unique integer value.
Title: Characters and Symbols
Description: ASCII and EBCDIC are two popular collating sequences that are not compatible with each other. The Unicode standard provides a much more comprehensive collating system that is compatible with ASCII.
Title: Collating Sequences