Pointers Flashcards

1
Q

What does a pointer store?

A

A memory address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what causes a memory fault or a segmentation fault?

A

Trying to access memory that isn’t allowed or in a way that isn’t allowed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the free command do?

A

Releases any memory that was assigned to a variable using malloc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly