Shouldn't the compiler error out here.
The statement: p = "" should have been p = '\0';
Or does the compiler treat them as equivalent.

It seems that only characters should be assigned to char's and strings are illegal
Ray

Richard Guenther wrote:
On 1/28/07, Denis Vlasenko <[EMAIL PROTECTED]> wrote:
char p;
int main() {
        p = "";
        return 0;
}

Don't you think that "" should end up in rw data?

Why?  It's not writable after all.

Richard.


Reply via email to