Possible Duplicate:
Why does this Seg Fault?
Hello, I have a
char* str = "blah";
And I now want to change one of the characters to something else, say a number 3. I am trying to do so with:
str[2] = '3';
However I am getting a seg fault at this line of code. Any idea why?