Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
C++
/
C dynamic memory management
Which pointer may be passed to free?
from C dynamic memory management
C23 (GCC 13.3.0)
intermediate
1 min
Which pointer may be passed to free?
The still-valid pointer returned by malloc, or NULL.
Any pointer to an element inside a malloc block.
A pointer to an automatic array after its block ends.
The old pointer saved before a successful realloc.
Check
Ask AI about this kata
Report an error
next kata
What does this C23 program print when calloc succeeds?
Predict the output
A new version is available
Reload