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.

Showing Answers 1 - 3 of 3 Answers

Dhanapal

  • Oct 4th, 2007
 

Console.WriteLine() stop printing when it reaches a 'Carriage Return' (denotes next line) character within a string!

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions