Initially quote pointed to read-only memory. When I reassigned the quote to point to expression, what happened to "Live long and prosper"?Code:char *quote = "Live long and prosper"; char expression[] = "Illogical"; quote = expression;
I know I lost the handle to it. Would that be considered a memory leak as well as with dynamic memory?
It can not be freed before the reassignment, since it doesn't reside where dynamic memory is allocated.
Would that memory be reused again? What doth say ye?