KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Say I have a void* named ptr. How exactly should I go about using ptr to store an int? Is it enough to write ptr = (void *)5; If I want to save the number 5? Or do I have to malloc something to save it?
Tags (comma-separated)
Save Edits
Cancel