Can't resist to ask after seeing answers to my earlier question.
char* msg = "Stack-overflow"; // Stored on read-only memory region of process.
int i=10; // Stored onto stack.
why "Stack-overflow"
will be stored on read-only memory area of process and value 10
is not?
Edited to clear my question.