1/11
These flashcards cover key concepts from Lecture 14 of COMP10110 Computer Programming I, focusing on functions, pointers, structs, and data handling in C.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Function
A block of code that performs a specific task, defined by parameters and may return a value.
Pass-by-value
A method of passing arguments to functions where a copy is made; changes to the parameter do not affect the argument.
Pass-by-reference
A method of passing arguments to functions where a reference to the original variable is passed, allowing the function to modify the variable.
Struct
A composite data type in C that groups variables of different data types under a single name.
Pointer
A variable that stores the memory address of another variable, enabling indirect manipulation of the variable's value.
Dereferencing
The process of accessing the value at the address stored by a pointer using the * operator.
Address operator
An operator (&) used to obtain the address of a variable.
Typedef
A feature in C that allows the creation of new names for existing types, enhancing code readability.
Hexadecimal
A base-16 number system using digits 0-9 and letters a-f to represent values.
Memory Location
The address in RAM where a variable's value is stored.
Return multiple values
A concept in functions allowing the return of more than one value, typically through structs or pointers.
Swapping values
The act of exchanging the values of two variables, often implemented using functions.