COMP10110 Computer Programming I - Lecture 14

0.0(0)
studied byStudied by 0 people
0.0(0)
linked notesView linked note
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts from Lecture 14 of COMP10110 Computer Programming I, focusing on functions, pointers, structs, and data handling in C.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

Function

A block of code that performs a specific task, defined by parameters and may return a value.

2
New cards

Pass-by-value

A method of passing arguments to functions where a copy is made; changes to the parameter do not affect the argument.

3
New cards

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.

4
New cards

Struct

A composite data type in C that groups variables of different data types under a single name.

5
New cards

Pointer

A variable that stores the memory address of another variable, enabling indirect manipulation of the variable's value.

6
New cards

Dereferencing

The process of accessing the value at the address stored by a pointer using the * operator.

7
New cards

Address operator

An operator (&) used to obtain the address of a variable.

8
New cards

Typedef

A feature in C that allows the creation of new names for existing types, enhancing code readability.

9
New cards

Hexadecimal

A base-16 number system using digits 0-9 and letters a-f to represent values.

10
New cards

Memory Location

The address in RAM where a variable's value is stored.

11
New cards

Return multiple values

A concept in functions allowing the return of more than one value, typically through structs or pointers.

12
New cards

Swapping values

The act of exchanging the values of two variables, often implemented using functions.