AFAIK, string literals are stored in read-only memory in the case of the C language where it is really present on the hardware.
according to my handful of knowledge is in RAM. correct me if I am wrong.
How different is the heap from permanent memory?
OS dependent?
source
share