CMPSC 311 - Arrays and Pointers Vocabulary

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/12

flashcard set

Earn XP

Description and Tags

Flashcards about Arrays and Pointers in C Systems Programming

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

13 Terms

1
New cards

Pointer

A variable that contains a memory address.

2
New cards

Dereference

Access the memory referred to by a pointer.

3
New cards

Pass by reference

Pointers allow C to emulate this.

4
New cards

Auto Storage Class

Variables that are automatically allocated and deallocated (local function variables declared on stack).

5
New cards

Global Storage Class

Globally defined variables that can be accessed anywhere within the program.

6
New cards

Static Storage Class

A variable that is global to the local file only (static global variable) or to the scope of a function (static local variable).

7
New cards

Array Initialization

Allocates an array and fills it with supplied values; if fewer values are given than the array size, fills rest with 0.

8
New cards

Multi-dimensional Arrays

Allocates a 2D array and fills it with predefined values.

9
New cards

Pointer

Array name can be used as this to the 0th element.

10
New cards

Pointer Arithmetic

Adding integer i to pointer p yields a pointer to the element i places after the one that p points to.

11
New cards

Arrays as Function Parameters

When passing an array as an argument to a function, the address of the 0-th element is passed by value – copied to a pointer in the callee.

12
New cards

Virtual Memory

Each process has the illusion of its own, private memory.

13
New cards

ASLR

Randomizes executable code location, base of stack, and shared library location for added security.