Memory Flashcards

1
Q

What are pointers?

A

Variables with addresses to a “memory box” that points to the value in that box

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

What is an array really?

A

A pointer to the first element of the array

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

What does the function fputc() do?

A

It writes a single character to a specified file

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

What does the free() function do and when do you use it?

A

It frees memory that was allocated and should only be used on allocated memory

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

How many times should you free() something in C?

A

Only once

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

What are garbage values?

A

Random data that may be stored in memory locations that have not been initialized.

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

What is the compiler for C languages?

A

Clang

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