Code:
#include \"stdio.h\" #include \"string.h\" int main() { char *p = \"abc\"; printf(\"p is %s \\n\", p); return 0; }
O
p is basically just a pointer to read-only data (which is "abc" in your case). You cannot overwrite that with "def".
p