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.
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.