How is read-only memory implemented in C?
That’s not a feature of the C language but a feature of the compiler/linker and the operating system working together. When you compile such code the following happens: The compiler will put the string into a read-only data-section. The linker collects all the data in such read-only sections and puts them into a single segment. … Read more