#include #include #include int main() { char *foo = strdup("abcdef"); char *bar = foo + 3; bar[-1] = 'y'; printf("%s\n", foo); return 0; }