weird empty string

ag0aep6g via Digitalmars-d digitalmars-d at puremagic.com
Fri May 12 22:16:40 PDT 2017


On 05/13/2017 06:20 AM, Yuxuan Shui wrote:
> So why does "" has non-null pointer while [] has null pointer? Looks
> inconsistent.

String literals are null-terminated, so "" needs to point at a null byte.


More information about the Digitalmars-d mailing list