#include <stdio.h> const char* f() { return "hello"; } int main() { const char* c = f(); *(c + 1) = 'a'; return 0; }
Standard input is empty
prog.c: In function ‘main’: prog.c:11: error: assignment of read-only location ‘*(c + 1u)’
Standard output is empty