Right, I accept that it will compile, but I don't understand why "01234"
produces a warning and "0123" doesn't? Don't think C99 says anything about
that. And, AFAIU, using structs with fixed-size char array we more or less
rely on the compiler warning us if anyone initializes it with too long a
string.
Also interesting, that with
char c[4] = "012345";
the compiler warns, but actually allocates a 6-byte long array...
Thanks
Guennadi
---
Guennadi Liakhovetski
-