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 function pointers
An API retains a callback and void* context until unregister returns. Which context is sa…
from C function pointers
C23 (GCC 13.3.0)
intermediate
1 min
An API retains a callback and void* context until unregister returns. Which context is safe to register?
The address of a local variable in a helper that returns immediately
Storage whose lifetime extends through completed unregistration and any in-progress calls
Any pointer after casting it to void*
A pointer to a temporary object used by the registration expression
Check
Ask AI about this kata
Report an error
previous kata
What does this program print?
Predict the output
next kata
Review generated route registry
Review AI code
A new version is available
Reload