C Glossary
Key terms from the C course, linked to the lesson that introduces each one.
199 terms.
A
- AAA
- A good unit test follows a simple pattern often called AAA:
- Lesson 1172 — Principles of Unit Testing
- AddressSanitizer
- Modern compilers like GCC and Clang offer a faster, "built-in" alternative called AddressSanitizer (or ASan).
- Lesson 1171 — Using AddressSanitizer (`-fsanitize=address`)
- Adjacency Matrix
- In computer science, this grid is called an Adjacency Matrix.
- Lesson 1040 — Adjacency Matrix implementation
- after
- It must be called after opening a file but before performing any input or output operations on it.
- Lesson 752 — Setting custom buffers with setvbuf
- alignment
- This is called alignment, and it helps the CPU read data faster.
- Lesson 453 — Determining variable alignment in memoryLesson 948 — The `#pragma pack` directive
- Amortized Time Complexity
- This "averaged-out" cost is called Amortized Time Complexity.
- Lesson 985 — Amortized time complexity
- Anonymous mapping
- Anonymous mapping is like renting an empty unit just to have the open floor space to build something new from scratch.
- Lesson 594 — Anonymous memory mappings
- archiver
- With a static library, you use a tool called an archiver (ar) to glue those .o files together.
- Lesson 810 — What is a static library `.a`
- array of function pointers
- In C, an array of function pointers is that row of buttons.
- Lesson 517 — Arrays of function pointers
- array of pointers
- An array of pointers is exactly what it sounds like: a list where every "slot" holds a memory address.
- Lesson 927 — Arrays of pointers vs Pointers to arrays
- array of structures
- An array of structures is the entire spreadsheet.
- Lesson 632 — Indexing into a struct array
- ASCII
- To solve this, computer scientists created a secret codebook called ASCII (American Standard Code for Information Interchange).
- Lesson 106 — Characters as small integersLesson 109 — The ASCII encoding scheme
- atomic
- In computer science, atomic means "indivisible." When you perform an atomic load or store, the CPU guarantees the operation happens as a single, uninterruptible step.
- Lesson 1143 — Atomic load and store
- attributes
- The C23 standard officially introduced a standardized way to give the compiler "sticky notes" called attributes.
- Lesson 971 — C23: Attributes like `[[maybe_unused]]`
- automatic duration variables
- They are known as automatic duration variables (often just called "local variables").
- Lesson 140 — Automatic duration variables
- automatic storage duration
- This is known as automatic storage duration.
- Lesson 529 — Automatic storage duration on the stack
- automatic variables
- This is why local variables are called automatic variables—their lifecycle is managed for you.
- Lesson 530 — Stack frame lifecycle and local variables
B
- base case
- If the base case is the emergency brake that stops a function from running forever, the recursive step is the engine that keeps it moving toward that stop.
- Lesson 355 — The Recursive Step
- batching
- High-performance C code often uses a technique called batching.
- Lesson 1185 — Profiling memory allocation frequency
- Best-fit
- While some strategies grab the first hole they see, Best-fit is the "perfectionist" approach.
- Lesson 584 — Allocation strategies: Best-fit
- Big Endian
- Big Endian is like writing naturally: you put "CO" in the first box, "FF" in the second, and "EE" in the third.
- Lesson 950 — Big Endian vs Little Endian explained
- binary mode
- While we could use text (like a .txt file), saving in binary mode is faster and more efficient because it writes the data exactly as it looks in your computer's memory.
- Lesson 1217 — Saving the data store to a binary file
- breakpoints
- In GDB, these stop signs are called breakpoints.
- Lesson 829 — Setting breakpoints with `break`
- buffer
- Instead, it stores the characters in a temporary "waiting room" called a buffer.
- Lesson 751 — Forcing a write with fflushLesson 752 — Setting custom buffers with setvbuf
- buffer overflow
- This is called a buffer overflow, and it is one of the leading causes of software crashes and hacking vulnerabilities.
- Lesson 422 — Scanning strings with `%s` and `scanf` limitationsLesson 432 — Why `gets` is dangerous and deprecatedLesson 433 — Safe input reading with `fgets`Lesson 437 — Checking bounds before array accessLesson 695 — Limiting string length in scanfLesson 704 — Safe string formatting with snprintfLesson 706 — The buffer size argument in fgetsLesson 848 — Copying strings safely with `strncpy`
- Bump Allocator
- A Linear Allocator (also called a Bump Allocator) is like a tall stack of clean trays.
- Lesson 586 — Linear or Bump allocators
- busy-waiting
- In programming, this is called busy-waiting.
- Lesson 1132 — Introduction to condition variables
C
- calloc
- calloc is like hiring a janitor to scrub every inch of the room, wash every window, and bleach the whiteboards before you step inside.
- Lesson 545 — Zero-initialization overhead
- cast operator
- The cast operator is a set of parentheses containing a data type name, placed directly before a value or variable.
- Lesson 230 — The `(type)` cast operator
- chained assignment
- However, C allows a shortcut called chained assignment.
- Lesson 196 — Chained assignments `a = b = c`
- characters
- strlen tells you how many characters are currently inside that space.
- Lesson 847 — Finding string length with `strlen`
- collision
- This is called a collision, and while the modular function is a great start, handling those overlaps is the next step in mastering hash tables.
- Lesson 1032 — A simple modular hash function
- commenting out code
- In C programming, commenting out code is exactly like that.
- Lesson 38 — Commenting out code for testing
- compiler
- The Compiler is like a factory that creates specific components: one factory makes the windows, another makes the doors, and a third makes the roof.
- Lesson 10 — Installing GCC on Linux/macOSLesson 12 — Introduction to the CLILesson 28 — Phase 4: The LinkerLesson 30 — Creating an executable binary
- condition
- The condition is the signpost telling the car when to exit.
- Lesson 268 — Updating the loop variable to avoid infinite loops
- constant pointer
- However, a constant pointer is like a butler who has signed a lifetime contract with one specific house.
- Lesson 494 — Constant pointer to a value (`int * const p`)
- Core Dump
- A Core Dump is like a high-resolution photo of the crime scene.
- Lesson 837 — Debugging a Segfault from a core dump
- Count
- Count is how many cartons you want to move in one go.
- Lesson 727 — The size and count parameters
D
- dangling pointer
- In C, a dangling pointer is exactly like that copied key.
- Lesson 557 — What is a dangling pointer
- data
- The pointer is the person (the address), and the data is what's inside the briefcase (the value).
- Lesson 496 — When to use `const` with pointers
- data loss
- In programming, this "mess" is called data loss or overflow.
- Lesson 132 — Safe downcasting techniques
- deadlock
- Since you are the one holding the lock, you’re stuck in a permanent stalemate called a deadlock.
- Lesson 1130 — Recursive mutexes
- Declaration
- Declaration is the act of requesting a mailbox.
- Lesson 79 — Declaration vs. Initialization
- Defensive Programming
- In C programming, Defensive Programming is the art of building that vending machine.
- Lesson 1148 — The philosophy of 'Trust No One'
- dereferencing
- In programming, this act of "following the map" to see what’s inside the house is called dereferencing, and we use the indirection operator (*) to do it.
- Lesson 238 — The Indirection operator `*`Lesson 456 — The difference between `int *p` and `*p`Lesson 457 — The Dereference operator `*`
- dereferencing a NULL pointer
- In C, trying to access or modify the value at a NULL address is called dereferencing a NULL pointer.
- Lesson 525 — Dereferencing the NULL pointer
- directives
- It looks for specific instructions called directives.
- Lesson 25 — Phase 1: The Preprocessor
- double dereferencing
- This process is called double dereferencing.
- Lesson 505 — Accessing data through double dereference
- downcasting
- In C, downcasting is the act of converting a larger data type (like a long) into a smaller one (like an int or char).
- Lesson 132 — Safe downcasting techniques
- Doxygen
- In professional C programming, Doxygen is the tool that turns your comments into that polished instruction booklet (usually as an HTML website or PDF).
- Lesson 1199 — Writing effective Doxygen comments
E
- Endianness
- Computers face a similar problem called Endianness.
- Lesson 952 — Network byte order and `htons`/`ntohs`Lesson 956 — The `__builtin_bswap` compiler intrinsics
- Enqueue
- In programming, this process of joining the back of the line is called Enqueue.
- Lesson 1016 — Enqueue operation logic
- environment variables
- In systems programming, these items are called environment variables.
- Lesson 1071 — Environment variables in C
- EOF
- To handle this, we use the while loop combined with a special signal called EOF, which stands for "End Of File."
- Lesson 270 — Reading input until EOF with while
- epsilon
- We do this by defining a very small threshold called epsilon.
- Lesson 166 — Comparing floating-point numbers
- Executable
- The Executable is the Japanese recipe (the .exe or binary file).
- Lesson 9 — Role of the Compiler
- exponential time complexity
- This is called exponential time complexity.
- Lesson 361 — Fibonacci: The cost of redundancy
- External fragmentation
- External fragmentation is like having ten small gaps under your bed.
- Lesson 582 — Internal vs External fragmentation
- External Linkage
- External Linkage is like a package addressed to the building lobby; anyone in any apartment can access it.
- Lesson 918 — Internal vs external linkage basics
F
- fatal error
- A fatal error is like realize you have no oven and no flour.
- Lesson 68 — Warnings vs Fatal errors
- file descriptor
- In C, a socket is represented by a simple integer called a file descriptor.
- Lesson 1110 — Creating a socket with socket()
- First-fit
- First-fit is the simplest and often fastest strategy for this search.
- Lesson 583 — Allocation strategies: First-fit
- format specifier
- If you type printf("My age is age");, the computer will literally print the word "age." To fix this, we use a special placeholder called a format specifier.
- Lesson 50 — Printing integers with `%d`Lesson 87 — Printing integers with `%d` and `%ld`
- forward declaration
- A forward declaration is a way of saying to the compiler: "Hey, there is a struct named Enemy coming later.
- Lesson 792 — Forward declarations in headers
- function pointer
- A function pointer is simply a variable that stores that starting address, allowing you to "hold" a function in your hand and pass it around your code.
- Lesson 514 — Syntax of function pointersLesson 928 — Declaring pointers to functions
- function prototype
- An explicit declaration, commonly called a function prototype, is like giving the compiler a "heads-up." You provide the function's signature at the very top of your file, before main().
- Lesson 329 — Implicit vs. explicit declarations
G
- garbage value
- This leftover data is known as a garbage value.
- Lesson 77 — Garbage values and uninitialized variables
- generic function
- A generic function is like a universal shipping container; it doesn't care what is inside as long as it follows basic handling instructions.
- Lesson 511 — Generic functions in C
- global variable
- In C, a global variable is that communal fridge.
- Lesson 142 — The dangers of global variables
H
- Hash Function
- Instead, you put the book's title into a special machine called a Hash Function.
- Lesson 1036 — Hash table lookup
- Header Guard
- A Header Guard is a special wrapper made of preprocessor directives that acts like a velvet rope at a club.
- Lesson 380 — Header Guards: `#ifndef` and `#define`
- Heap
- The Heap is a massive storage warehouse down the street.
- Lesson 532 — Introduction to the Heap segment
- Hot Spots
- In programming, these high-traffic areas are called Hot Spots.
- Lesson 1183 — Identifying 'Hot Spots' in your code
I
- IDE
- An IDE is like an automatic—it’s smoother, but it hides the mechanics from you.
- Lesson 13 — Using a Text Editor vs IDE
- identifier
- You have many identical jars, so you put labels on them like "Salt," "Sugar," or "Flour." In C, a variable is like one of those jars, and the name you give it is called an identifier.
- Lesson 74 — Naming rules and identifiers
- implicit declaration
- Instead, it makes a dangerous assumption called an implicit declaration.
- Lesson 334 — Common errors with missing prototypes
- In-order traversal
- To take advantage of this and print the tree's contents in order (like a sorted list), we use a recursive strategy called In-order traversal.
- Lesson 1025 — In-order traversal (Sorted output)
- incremental build
- This is called an incremental build, and it is the secret to staying productive as a programmer.
- Lesson 817 — Why we need build tools
- indented logging
- To see what’s actually happening, we use a technique called indented logging.
- Lesson 363 — Visualizing recursive depth
- infinite loop
- This is called an infinite loop, and it will cause your program to freeze or crash because it is stuck doing the same task over and over.
- Lesson 268 — Updating the loop variable to avoid infinite loops
- Ingredient
- If the recipe says, "Take the Ingredient and chop it, then take the Ingredient and boil it," and you decide that your Ingredient is "an apple that I must wash first," the recipe becomes:
- Lesson 775 — Side effects in macro arguments
- Initialization
- Initialization is the act of clearing out that junk and putting your own specific value inside for the first time.
- Lesson 79 — Declaration vs. Initialization
- inner loop
- The inner loop is the minute hand; it completes a full circle for every single "tick" of the hour hand.
- Lesson 299 — Inner loop vs outer loop execution orderLesson 300 — Using nested loops to print 2D grids
- Insertion Sort
- While algorithms like Bubble Sort and Insertion Sort are typically stable, Quick Sort is often unstable because it swaps elements over long distances.
- Lesson 1051 — In-place sorting vs extra memoryLesson 1052 — Stability in sorting algorithms
- integer overflow
- This is called integer overflow, and it can lead to massive bugs or security holes.
- Lesson 905 — Using `INT_MAX` and `INT_MIN` for overflow checks
- Integration testing
- Integration testing is like putting three gears together and turning the first one to see if the third one moves.
- Lesson 1177 — Integration testing vs. Unit testing
- Internal fragmentation
- Internal fragmentation is like buying a large suitcase to carry a single pair of socks.
- Lesson 582 — Internal vs External fragmentation
- Internal Linkage
- Internal Linkage is like a conversation happening inside a specific apartment; the neighbors next door have no idea it’s happening.
- Lesson 918 — Internal vs external linkage basics
- Invalid Read
- An Invalid Read means you tried to look at data you don't own, while an Invalid Write means you tried to change it.
- Lesson 568 — Finding invalid reads and writes
- Invalid Write
- An Invalid Read means you tried to look at data you don't own, while an Invalid Write means you tried to change it.
- Lesson 568 — Finding invalid reads and writes
- Iteration
- Iteration is like standing at the bottom and saying, "While I haven't reached the top, move my left foot, then my right foot." You stay in one "state" and keep track of your progress with a counter.
- Lesson 358 — Iteration vs. Recursion comparison
L
- Left-to-Right Associativity
- In C, this "first-come, first-served" logic is called Left-to-Right Associativity.
- Lesson 213 — Left-to-right associativity
- lexicographical comparison
- To see if "apple" matches "apple," we use a process called lexicographical comparison via the strcmp (string compare) function.
- Lesson 850 — Lexicographical comparison with `strcmp`
- library
- To perform tasks like displaying words or reading what a user types, you need to "borrow" tools from a specialized toolbox called a library.
- Lesson 41 — The `stdio.h` library
- Lifetime
- Lifetime is the duration the actor is actually in the building.
- Lesson 139 — Lifetime vs. Scope
- Linker
- The Linker is the construction crew that arrives at the site.
- Lesson 28 — Phase 4: The LinkerLesson 64 — Library linking basics
- local variable
- In C, a local variable is like that guest.
- Lesson 136 — Local variables and block scope
M
- Machine Code
- Its job is to take those assembly words and translate them into a specific sequence of binary numbers known as Machine Code.
- Lesson 27 — Phase 3: Assembly to Object CodeLesson 30 — Creating an executable binary
- Make
- In C programming, the most common "bread machine" is a tool called Make.
- Lesson 62 — Automating the build process
- Makefile
- A Makefile is that recipe for your C project.
- Lesson 1211 — Writing the Makefile for the project
- malloc
- malloc is like walking into a room where the previous teacher left their notes on the whiteboard.
- Lesson 545 — Zero-initialization overhead
- Manual memory
- Manual memory (The Heap) is like a giant warehouse across town.
- Lesson 533 — Manual vs automatic memory management
- memory address
- In computing, that house number is called a memory address.
- Lesson 80 — Variables in memory addresses
- memory alignment
- This requirement is called memory alignment.
- Lesson 576 — The aligned_alloc functionLesson 638 — Understanding memory alignment
- misaligned access
- In the world of C, this "stitching together" is called a misaligned access.
- Lesson 526 — Misaligned pointer access
- mock
- A mock is a "stunt double." It has the exact same name and signature as the real function, but instead of doing hard work, it returns a hard-coded value that you control.
- Lesson 1176 — Mocking simple dependencies
- MSYS2
- The simplest way to get MinGW is through a project called MSYS2, which manages the installation for you.
- Lesson 11 — Setting up MinGW on Windows
N
- Named Pipe
- A FIFO (First-In, First-Out) is often called a Named Pipe.
- Lesson 1107 — Creating FIFOs with mkfifo()
- Network Byte Order
- To fix this, the internet uses a standard "postal code" rule: all data traveling over a network must be in Big-Endian format, also known as Network Byte Order.
- Lesson 952 — Network byte order and `htons`/`ntohs`
- node
- In a linked list, each individual link is called a node.
- Lesson 989 — Defining the self-referential node struct
O
- outer loop
- The outer loop is the slow mover, while the inner loop is the fast mover.
- Lesson 299 — Inner loop vs outer loop execution orderLesson 300 — Using nested loops to print 2D grids
P
- padding
- However, if the members have different alignment requirements, the compiler will insert invisible, empty bytes called padding to ensure every piece of data sits at a "natural" boundary.
- Lesson 638 — Understanding memory alignmentLesson 947 — Structure padding and alignment issues
- Pages
- Instead, it divides memory into fixed-size blocks called Pages.
- Lesson 597 — Virtual memory pages and offsetsLesson 598 — Page faults and resident set size
- partitioning
- Quick Sort is a divide-and-conquer algorithm, but all the heavy lifting happens in a step called partitioning.
- Lesson 1056 — Quick Sort: Partitioning logic
- Pass by Value
- In C, this behavior is called Pass by Value.
- Lesson 343 — Why changing a parameter doesn't affect the caller
- pipe
- In systems programming, a pipe is a unidirectional communication channel managed by the operating system kernel.
- Lesson 1100 — Anatomy of a pipeLesson 1102 — Unidirectional flow in pipes
- pointer
- The pointer is the person (the address), and the data is what's inside the briefcase (the value).
- Lesson 496 — When to use `const` with pointers
- pointer to a struct
- In C, a pointer to a struct is that sticky note.
- Lesson 615 — Declaring a pointer to a struct
- pointer to an array
- A pointer to an array is a single pointer variable that points to a whole block of memory formatted as an array.
- Lesson 927 — Arrays of pointers vs Pointers to arrays
- Pop
- In the world of Stacks, the operation for removing data is called Pop.
- Lesson 1010 — The Pop operation
- precedence
- In C, the compiler follows a strict set of rules called precedence to decide which operation to do first.
- Lesson 215 — Parentheses for clarityLesson 217 — Precedence of assignmentLesson 219 — Common precedence errorsLesson 227 — Order of evaluation vs Precedence
- Process
- A Process is like a completely separate apartment building.
- Lesson 1116 — Threads vs Processes
- Process ID
- To manage hundreds of processes simultaneously—like your web browser, your music player, and your code—the OS assigns each one a unique identification number called a Process ID, or PID for short.
- Lesson 1068 — Getting PID with getpid()
- profiler
- In programming, a profiler is your kitchen stopwatch.
- Lesson 1182 — Introduction to the `gprof` profiler
- profilers
- In C, we use tools called profilers (like gprof or Valgrind's Callgrind) to identify these spots.
- Lesson 1183 — Identifying 'Hot Spots' in your code
- prototype
- In C, a prototype is like a movie trailer—it tells the compiler the title, the stars (parameters), and the genre (return type) before the full feature begins.
- Lesson 332 — Matching prototypes with definitions
- ptrToPtr
- The actual integer value at the final destination (the second hop).
- Lesson 500 — Concept of double indirection
Q
- Quick Sort
- While algorithms like Bubble Sort and Insertion Sort are typically stable, Quick Sort is often unstable because it swaps elements over long distances.
- Lesson 1052 — Stability in sorting algorithms
R
- Race Condition
- In C programming, this is known as a Race Condition.
- Lesson 763 — Temporary file security risks
- Random access
- Random access is like a DVD or a digital stream.
- Lesson 720 — Sequential vs random access concepts
- recursion
- Recursion is like standing on the first step and saying, "To climb this staircase, I will step up once, and then I will perform the 'climb a staircase' task for the remaining steps." Each step creates a new, slightly smaller version of the original problem.
- Lesson 354 — Importance of the Base CaseLesson 358 — Iteration vs. Recursion comparison
- recursive step
- If the base case is the emergency brake that stops a function from running forever, the recursive step is the engine that keeps it moving toward that stop.
- Lesson 355 — The Recursive Step
- registers
- To speed things up, the CPU has a few private drawers right on its desk called registers.
- Lesson 961 — Direct register access
- Rehashing
- Once the table hits this limit, it’s time to move to a bigger "closet." This process is called Rehashing.
- Lesson 1037 — Load factor and rehashing
- Resident Set Size
- The Resident Set Size is the actual amount of physical RAM your program is occupying at this very moment.
- Lesson 598 — Page faults and resident set size
- row-major order
- To bridge this gap, C uses a system called row-major order.
- Lesson 408 — Memory layout: Row-major order
S
- seed
- If you provide the same starting point—called a seed—using srand(), the formula will spit out the exact same sequence of "random" numbers every time.
- Lesson 886 — Why you should only seed onceLesson 888 — Getting a unique seed with `time(NULL)`
- self-referential structure
- This leads to a unique C programming concept called a self-referential structure.
- Lesson 989 — Defining the self-referential node struct
- sequence point
- However, the logical AND (&&) and logical OR (||) operators introduce a strict rule called a sequence point.
- Lesson 223 — Sequence points in logic `&&` and `||`Lesson 226 — Function call sequence points
- Sequential access
- Sequential access is like an old VHS tape.
- Lesson 720 — Sequential vs random access concepts
- shared library
- Using a shared library is like using a public tool-sharing program.
- Lesson 813 — What is a shared library `.so` / `.dll`
- short-circuit evaluation
- This behavior is known as short-circuit evaluation.
- Lesson 171 — Short-circuit evaluation of `||`Lesson 253 — Short-circuit evaluation in logical AND
- side effect
- This change to the environment is called a side effect.
- Lesson 220 — Definition of a side effect
- side effects
- This creates a hidden danger called side effects.
- Lesson 775 — Side effects in macro arguments
- sig
- The signal constant (like SIGTERM to ask it to stop, or SIGUSR1 for a custom message).
- Lesson 1086 — Sending signals with kill()
- signal
- In the world of systems programming, a signal is that notification.
- Lesson 1084 — What are Unix signals
- signals
- In Linux and Unix systems, signals are these interrupts.
- Lesson 1087 — Basic signal handling with signal()
- Size
- Always ensure your Size is at least Length + 1 (to account for the null terminator).
- Lesson 420 — Length vs Size of a string arrayLesson 727 — The size and count parameters
- Source File
- In C programming, a Source File is that blueprint.
- Lesson 15 — The concept of a Source File
- Stack
- In this warehouse, the stack is a small, high-speed workbench right next to the assembly line.
- Lesson 149 — Memory segments: Stack vs. DataLesson 529 — Automatic storage duration on the stackLesson 1006 — Stack abstract data type concept
- Stack Frame
- In C, this "patch of desk space" is called a Stack Frame.
- Lesson 349 — Storage of local variablesLesson 454 — Introduction to the stack frame
- Stack Overflow
- In programming, this "hitting the ceiling" is called a Stack Overflow.
- Lesson 352 — Identifying a Stack Overflow
- Standards
- In programming, these updates are called Standards.
- Lesson 4 — Standards: ANSI C vs C99 vs C11
- static library
- Using a static library is like buying your own personal cement mixer and locking it in your garage.
- Lesson 813 — What is a shared library `.so` / `.dll`
- static memory pool
- A static memory pool is like a buffet tray already sitting on your table.
- Lesson 580 — Managing a static memory pool
- streams
- In C, these pathways are called streams.
- Lesson 677 — Introduction to stdin, stdout, and stderr
- Strict Aliasing
- Modern C compilers use a rule called Strict Aliasing.
- Lesson 527 — Pointer type-punning dangers
- Strict Aliasing Rule
- In C, the Strict Aliasing Rule is that same assumption for the compiler.
- Lesson 936 — Strict aliasing rule violations
- string
- In C, a sequence of characters bundled together is called a string.
- Lesson 53 — The `%s` specifier for strings
- struct
- A struct is like a specialized suitcase with separate compartments for your shoes, your shirts, and your toiletries.
- Lesson 658 — Size of a union vs size of a struct
- style guide
- A style guide is simply a shared agreement on how the "house" should be organized.
- Lesson 40 — C coding style guides
- suppression file
- Valgrind allows you to create a "hush list" called a suppression file (usually ending in .supp).
- Lesson 570 — Suppressing known tool warnings
- switch statement
- A switch statement is more like an elevator.
- Lesson 264 — Comparing switch-case vs else-if ladders
- Symbolic Constant
- A Symbolic Constant is a way to give that literal value a meaningful name.
- Lesson 118 — Literal vs. Symbolic constants
- System Call
- This is called a System Call, and it is "expensive" in terms of time and processing power.
- Lesson 754 — Performance: Single char vs block I/O
T
- tagged union
- In the example below, we use a struct to hold the "Label" of our data, and a nested union to hold the "Value." This is often called a tagged union because the type variable tells us which part of the union is currently active.
- Lesson 670 — Combining structs and unions
- Text Editor
- A Text Editor is like a manual transmission—you have to shift the gears yourself, but you learn exactly how the engine behaves.
- Lesson 13 — Using a Text Editor vs IDE
- Thread
- A Thread is like hiring an extra chef to work in your current kitchen.
- Lesson 1116 — Threads vs Processes
- tokenizing
- In C, the process of breaking this sequence into individual pieces is called tokenizing, and the strtok function is your primary tool for the job.
- Lesson 853 — Tokenizing strings with `strtok`
- Two’s Complement
- They can't store a "dash." To solve this, C uses a system called Two’s Complement.
- Lesson 91 — How bits represent negative numbers
- type cast
- However, C provides a "hammer" called a type cast.
- Lesson 499 — Casting away `const` volatility
- type promotion
- Instead, it follows a rule called Type Promotion.
- Lesson 121 — What is type promotion?Lesson 158 — Mixing int and float in arithmetic
- type punning
- This is called type punning, and while advanced programmers sometimes do it on purpose, doing it by accident is a leading cause of logic bugs.
- Lesson 659 — The danger of reading the wrong union member
U
- union
- A union is like a single-compartment gym locker.
- Lesson 658 — Size of a union vs size of a struct
- Unit Testing
- In C, Unit Testing is the practice of checking the smallest "units" of your code—usually individual functions—before they become part of the whole.
- Lesson 1172 — Principles of Unit TestingLesson 1177 — Integration testing vs. Unit testing
- unsigned char
- An unsigned char is like starting your ruler at 0.
- Lesson 111 — Signed vs. Unsigned chars
- Usual Arithmetic Conversions
- This process is called Usual Arithmetic Conversions.
- Lesson 229 — Usual arithmetic conversions
V
- value
- The byte you are looking for (passed as an int, but converted to an unsigned char).
- Lesson 859 — Searching memory bytes with `memchr`
- variable
- A variable is like putting a Post-it note label on one of those lockers.
- Lesson 73 — What is a variable?
- variadic arguments
- Most functions require a fixed number of inputs, but printf uses a feature called variadic arguments.
- Lesson 376 — How `printf` works internally
W
- what
- Without knowing what is at the address, you don't know how to pick it up.
- Lesson 508 — Why you can't dereference `void *`
- word
- In reality, the CPU reads memory in "chunks"—usually 4 or 8 bytes at a time (called a word).
- Lesson 574 — Performance cost of unaligned access
- words
- In reality, the CPU has "large hands." It doesn't pick up one byte at a time; it grabs memory in fixed-size blocks called words.
- Lesson 571 — CPU word size and alignment
Z
- zero-initialization overhead
- This process is known as zero-initialization overhead.
- Lesson 545 — Zero-initialization overhead