Where does compiler allocate memory for "abc" that x points to?
I think it's on heap. Am I right?
(assume Char x = "abc" is defined at global scope)
Added: Please note that I mean the "abc" x is pointing to. It's different from the original "abc" literal. It's initialized by the original "abc" literal.
Added: After discussion we believe it's compiler depended. But in most cases it's on data segment. Any comments?