Memory Flashcards
1
Q
What are pointers?
A
Variables with addresses to a “memory box” that points to the value in that box
2
Q
What is an array really?
A
A pointer to the first element of the array
3
Q
What does the function fputc() do?
A
It writes a single character to a specified file
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
5
Q
How many times should you free() something in C?
A
Only once
6
Q
What are garbage values?
A
Random data that may be stored in memory locations that have not been initialized.
7
Q
What is the compiler for C languages?
A
Clang