#include<stdio.h>
int main(void)
{
/* in this amessage is an array big enough to
* hold the sequence of character and '\0' */
char amessage[] = "now is the time";
/* in this case a character pointer is
* pointing to a string constant */
char *pmessage = "now is the time";
return 0;
}
I am confused how is the memory allocated in the second case?? Is that copy of memory private....I mean is it safe to write something as 2nd stmt and be sure that anything else will not overwrite the same memory??