KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The following code points to the first character in a char array available in read-only memory. Is that right?: const char * ptr = "String one"; Now when ptr starts to point at another memory location: ptr = "String two"; What happens to the first char array ? Is that memory location freed when the execution ends?
Tags (comma-separated)
Save Edits
Cancel