Sunday, January 31, 2010

Hello Message Sample C# String Manipulation?

C# String Manipulation? - hello message sample

String message = "\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ x0022Hello \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ x0022 ';

As the character created by the \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ x0022 escape sequence is the quotes that one of the following statements is the same string as the previous code sample creates?

Option 1 String message = "" "Hello" "";
Choice 2 string msg = "\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ u0022Hello \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ u0022";
Option 3 String message = "" "" + "Hello" + """";
Option 4 String message = "Hello";
Option 5 String message = "\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\" hello \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ "";

1 comment:

LoverOfW... said...

None of them. 5 is the next one, but that's how you code
"\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\" Hello \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ ""

\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ If the flight, so that \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ "says insert quotation marks.

Post a Comment

 
Copyright 2009 Stiletto for halo. Powered by Blogger
Blogger Templates created by Deluxe Templates
Wordpress by Wpthemesfree