>> char[] str; >> char[] str1 = "abc"; >> str[0] = 'b'; // error, "abc" is read only, may crash >> >> Editing str has nothing to do with str1, as far as I know. > > True, but it fails because str points to nothing. Or, in other words: isn't long enough :)