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
This is a problem in C. Although string literals are char * you can't modify them, so they are effectively const char*.
char *
const char*
If you are using gcc, you can use -Wwrite-strings to check if you are using string literals correctly.
gcc
-Wwrite-strings