1/9
These flashcards cover key terms and definitions related to structs, functions, arrays, and dynamic allocation as discussed in the lecture.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Struct
A user-defined data type in C that allows the combination of data items of different kinds.
Function
A block of code that performs a specific task and can be reused.
Dynamic Allocation
The process of allocating memory at runtime using functions like malloc().
malloc()
A standard library function in C that allocates a specified number of bytes in memory.
Print Function
A function that outputs the values of the data members of a struct.
Dot Notation
A way to access the members of a struct using the dot operator.
Arrow Operator (->)
An operator used to access members of a struct when using a pointer to the struct.
Array of Structs
A collection of multiple struct objects, stored in contiguous memory locations.
typedef
A keyword in C that allows the definition of a new data type name for existing data types.
Data Member
A variable that is part of a struct and holds data.