Interview Questions

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

C# Interview Questions and Answers


(Continued from previous question...)

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

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.

(Continued on next question...)

Other Interview Questions