1/22
Comprehensive vocabulary flashcards covering pointers, pointer arithmetic, one-dimensional and multidimensional arrays, arrays of pointers, functions, parameter passing mechanisms, recursion, and function pointers based on Module 3 of Computational Thinking and Programming in C.
Pointer
A variable that stores the memory address of another variable rather than a direct data value.
Address-of Operator (&)
A unary operator placed before a variable name to return its memory address.
Dereference Operator (*)
Also called the indirection operator, it accesses or modifies the value stored at the memory address contained within a pointer.
NULL Pointer
A pointer that does not point to any valid object or memory location and should not be dereferenced, declared as int *p = NULL;.
Void Pointer (void *)
A generic pointer that can hold the address of an object of any data type, requiring explicit type conversion before it can be dereferenced.
Pointer to Pointer
A pointer variable declared with double asterisks (e.g., int **p) that stores the memory address of another pointer variable.
Pointer Arithmetic
Arithmetic operations on pointers (such as increment, decrement, addition, or subtraction) where address adjustments are scaled by the byte size of the pointed-to data type.
Array
A collection of elements of the same data type stored in contiguous memory locations.
Zero-Based Indexing
An indexing convention in C where array numbering begins at index 0 and terminates at index n - 1.
Partial Initialization
An array initialization technique where fewer values than the declared array size are specified, causing all remaining elements to be automatically initialized to zero.
Two-Dimensional Array
An array organized into rows and columns, declared with two dimension specifiers using the syntax data_type array_name[rows][columns];.
Array of Pointers
An array whose individual elements are pointer variables, declared using the syntax int *p[5];.
Pointer to an Array
A pointer that points to an entire array rather than to an individual element, declared using parentheses as int (*p)[5];.
Function
A self-contained block of statements designed to perform a particular task in a modular program.
Function Prototype
A function declaration that informs the compiler about the function name, parameter types, and return type prior to its definition.
Actual Parameters
The arguments, variables, or expressions passed to a function at the point of the function call.
Formal Parameters
The variables defined in the function header that receive values or addresses from actual arguments during a call.
Call by Value
A parameter passing technique where a copy of the actual argument is passed to the function, ensuring modifications inside the function do not affect the caller's original variable.
Pointer-Based Reference Behavior
A technique in C where the caller passes the address of a variable to a pointer parameter, allowing the function to modify the original variable via dereferencing.
Recursion
A programming process in which a function calls itself repeatedly to solve smaller instances of a problem.
Base Case
The terminating condition in a recursive function that directly returns a value without making further recursive calls, preventing infinite recursion.
Recursive Case
The branch of a recursive function where the function invokes itself with a smaller or simpler problem input.
Function Pointer
A pointer variable that stores the memory address of an executable function, declared with parentheses as return_type (*pointer_name)(parameter_types);.