Why does assign of string literal to fixed char array fail?

rthiebaud thiebauddick2 at aol.com
Tue May 24 15:22:33 PDT 2011


The following program:

module main;
int main(string[] argv)
{
    char[20] a = "abc";
    return 0;
}

fails on Windows with:

First-chance exception at 0x7c812afb in ConsoleApp1.exe: 0xE0440001: 0xe0440001.

What is wrong?


More information about the Digitalmars-d-learn mailing list