Dear All:
In the process of reading the FAQ, I have some questions here is the
question from 1.13(in the new edition maybe 1.32).
quot:
=============== =============== =============== =============== ======
What is the difference between these initializations ?
char a[] = "string literal";
char *p = "string literal";
My program crashes if I try to assign a new value to p[i].
=============== =============== =============== =============== =====
Here I know the difference of the two initialize, what I want know is
why the ROM data can not modify?
Who assign the "ROM" area for our program?
Who load the program to memory and how load const to the "ROM" area?
Is the OS protect the "ROM" area?
Thanks a lot~
In the process of reading the FAQ, I have some questions here is the
question from 1.13(in the new edition maybe 1.32).
quot:
=============== =============== =============== =============== ======
What is the difference between these initializations ?
char a[] = "string literal";
char *p = "string literal";
My program crashes if I try to assign a new value to p[i].
=============== =============== =============== =============== =====
Here I know the difference of the two initialize, what I want know is
why the ROM data can not modify?
Who assign the "ROM" area for our program?
Who load the program to memory and how load const to the "ROM" area?
Is the OS protect the "ROM" area?
Thanks a lot~
Comment