While I was working on an assignment, I came to know that we should not use assignments such as :
char *s=\"HELLO WORLD\";
Programs using such
Read my answer on (array & string) Difference between Java and C. It contains the answer to your question in the section about strings.
You need to understand that there's a difference between static and memory allocation and that you don't resort to the same memory spaces.