char *ptest = "test log";
ptest[0] = 'q';
ptest[4] = '8';
printf(ptest);

としたらエラーになってしまいました。
教科書どおりに打ち込んだのになぜ?