On Tue, 4 Sep 2012 06:22:43 -0700, Charles Mills wrote: > >char[] delimits strings with '\0' in every implementation in the world, I >think. > It depends. With gcc:
char a6[ 6 ] = { 'w', 'o', 'm', 'b', 'a', 't' }; char s6[ 6 ] = "wombat"; both compile with no error message, whereas: char s5[ 5 ] = "wombat"; gives: wombat.c:6: warning: initializer-string for array of chars is too long so, apparently the \0 terminator is not mandatory. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN