I tried to compile it in VC++ 6.0, there is a compiler error. But a string could be terminated without '\0', couldn't it? Thanks.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 13 of 13
Thread: Is char s[3] = "abc" legal?Threaded View
|
Click Here to Expand Forum to Full Width |