1
Reply

Does Console.WriteLine() stop printing when it reaches a NULL character within a string?

Sapna Malik

Sapna Malik

15y
4.9k
0
Reply

    Strings are not null terminated in the runtime, so embedded nulls are allowed. Console.WriteLine() and all similar methods continue until the end of the string.