C# (Sharp) Programming Language Question:

Which of these string definitions will prevent escaping on backslashes in C#?

Tweet Share WhatsApp

Answer:

1. string s = #.n Test string.;
2. string s = ..n Test string.;
3. string s = @.n Test string.;
4. string s = .n Test string.;

Download C# (Sharp) Programming Language PDF Read All 163 C# (Sharp) Programming Language Questions
Previous QuestionNext Question
The C# keyword .int. maps to which .NET type? Which of these statements correctly declares a two-dimensional array in C#?