Code:
main() {

char *s = "IDIOT";
char *start, *end;
start = s;
end = s+strlen(s)-1;
printf("%c, %c",*start, *end);      // prints   I   T
*start = *end;                            // crashing at this point
printf("%c, %c",*start, *end);     // should print T   T

}
What I'm trying to do above is just replace I with T and I'm getting a segmentation fault!!! am clueless, please can someone help!!!