#include <stdio.h>
typedef struct TESTCASE{
char *before;
}ts;
int main(void) {
ts t[2] = {{"abcd"},
{"abcd"}};
t[0].before[0] = t[0].before[2] = t[0].before[3] = 'b';
printf("%s - %s\n", t[0].before, t[1].before);
return 0;
}
the output is
bbbb - bbbb
I compile with gcc in Cygwin
cc -g test.c -o test
my question is, with what compile option, I can reap a result of bbbb - abcd?